Skip to content

Commit c8a81f5

Browse files
committed
bootstrap: turn on FunctionCodeHandling::kKeep in the snapshot builder
To improve startup performance. PR-URL: nodejs#44104 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 06f5d45 commit c8a81f5

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
@@ -1014,7 +1014,7 @@ int SnapshotBuilder::Generate(SnapshotData* out,
10141014

10151015
// Must be out of HandleScope
10161016
out->v8_snapshot_blob_data =
1017-
creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kClear);
1017+
creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kKeep);
10181018

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

0 commit comments

Comments
 (0)