Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2022-04-28 18:08:26 +0300
committerMichaël Zasso <targos@protonmail.com>2022-05-02 15:39:30 +0300
commit37ca1102c457775a6d5b89099bbc7b405272e1ac (patch)
tree535669249fa2990f7c3c2f0c5478c79cc4375534 /src/node.cc
parent1102922ef93fddba03c4919c36db7f14c59c08d5 (diff)
src: make --no-node-snapshot a per-process option
We enable the shared read-only heap which currently requires that the snapshot used in different isolates in the same process to be the same. Therefore --no-node-snapshot is a per-process option. PR-URL: https://github.com/nodejs/node/pull/42864 Refs: https://github.com/nodejs/node/pull/42809 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node.cc b/src/node.cc
index 892615f1d8e..5910a400c25 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1169,8 +1169,7 @@ int Start(int argc, char** argv) {
}
{
- bool use_node_snapshot =
- per_process::cli_options->per_isolate->node_snapshot;
+ bool use_node_snapshot = per_process::cli_options->node_snapshot;
const SnapshotData* snapshot_data =
use_node_snapshot ? SnapshotBuilder::GetEmbeddedSnapshotData()
: nullptr;