Skip to content
Merged
Changes from all commits
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
src: lock the thread properly in snapshot builder
Otherwise it can crash DCHECK when V8 expects that at least someone
is locking the current thread.
  • Loading branch information
joyeecheung committed Dec 20, 2024
commit 056befb2a2896df995e67774ddbac7a9f56e04f2
2 changes: 2 additions & 0 deletions src/node_snapshotable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,8 @@ ExitCode BuildSnapshotWithoutCodeCache(
}

Isolate* isolate = setup->isolate();
v8::Locker locker(isolate);

{
HandleScope scope(isolate);
TryCatch bootstrapCatch(isolate);
Expand Down