mirror of https://github.com/nodejs/node.git
cli: allow --huge-max-old-generation-size in NODE_OPTIONS
PR-URL: https://github.com/nodejs/node/pull/32251 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
This commit is contained in:
parent
4cfcaaeef3
commit
95e3733532
|
@ -1196,6 +1196,7 @@ V8 options that are allowed are:
|
|||
<!-- node-options-v8 start -->
|
||||
* `--abort-on-uncaught-exception`
|
||||
* `--disallow-code-generation-from-strings`
|
||||
* `--huge-max-old-generation-size`
|
||||
* `--interpreted-frames-native-stack`
|
||||
* `--jitless`
|
||||
* `--max-old-space-size`
|
||||
|
|
|
@ -569,6 +569,11 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
|
|||
"disallow eval and friends",
|
||||
V8Option{},
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--huge-max-old-generation-size",
|
||||
"increase default maximum heap size on machines with 16GB memory "
|
||||
"or more",
|
||||
V8Option{},
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--jitless",
|
||||
"disable runtime allocation of executable memory",
|
||||
V8Option{},
|
||||
|
|
|
@ -67,6 +67,7 @@ if (common.hasCrypto) {
|
|||
// V8 options
|
||||
expect('--abort_on-uncaught_exception', 'B\n');
|
||||
expect('--disallow-code-generation-from-strings', 'B\n');
|
||||
expect('--huge-max-old-generation-size', 'B\n');
|
||||
expect('--jitless', 'B\n');
|
||||
expect('--max-old-space-size=0', 'B\n');
|
||||
expect('--stack-trace-limit=100',
|
||||
|
|
Loading…
Reference in New Issue