Skip to content

Commit 123b2d6

Browse files
joyeecheungruyadorno
authored andcommitted
bootstrap: turn on FunctionCodeHandling::kKeep in the snapshot builder
To improve startup performance. PR-URL: #44104 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent cb7a9e7 commit 123b2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_snapshotable.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ int SnapshotBuilder::Generate(SnapshotData* out,
313313

314314
// Must be out of HandleScope
315315
out->v8_snapshot_blob_data =
316-
creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kClear);
316+
creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kKeep);
317317

318318
// We must be able to rehash the blob when we restore it or otherwise
319319
// the hash seed would be fixed by V8, introducing a vulnerability.

0 commit comments

Comments
 (0)