Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! bootstrap: move event loop handle checking into snapshot builder
Co-authored-by: Voltrex <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
joyeecheung and VoltrexKeyva authored Jun 15, 2021
commit 767278efaa281cda9ce0619e7fde76efb590b9bd
3 changes: 2 additions & 1 deletion src/node_snapshotable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ void SnapshotBuilder::Generate(SnapshotData* out,
// We cannot resurrect the handles from the snapshot, so make sure that
// no handles are left open in the environment after the blob is created
// (which should trigger a GC and close all handles that can be closed).
if (!env->req_wrap_queue()->IsEmpty() || !env->handle_wrap_queue()->IsEmpty()
if (!env->req_wrap_queue()->IsEmpty()
|| !env->handle_wrap_queue()->IsEmpty()
|| per_process::enabled_debug_list.enabled(DebugCategory::MKSNAPSHOT)) {
PrintLibuvHandleInformation(env->event_loop(), stderr);
}
Expand Down