FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bootstrap: turn on FunctionCodeHandling::kKeep in the snapshot builder · nodejs/node@bd27b8b · GitHub

/ node Public

Commit bd27b8b

Browse files
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 f461d79 commit bd27b8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/node_snapshotable.cc‎

Lines changed: 1 addition & 1 deletion
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)

Back | FazBrowse Home | New Git URL