Skip to content

Commit 459d448

Browse files
Emanuel Hoogeveenruyadorno
Emanuel Hoogeveen
authored andcommitted
src: add --max-semi-space-size to the options allowed in NODE_OPTIONS
PR-URL: #44436 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 7cff1e1 commit 459d448

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

doc/api/cli.md

+1
Original file line numberDiff line numberDiff line change
@@ -1945,6 +1945,7 @@ V8 options that are allowed are:
19451945
* `--interpreted-frames-native-stack`
19461946
* `--jitless`
19471947
* `--max-old-space-size`
1948+
* `--max-semi-space-size`
19481949
* `--perf-basic-prof-only-functions`
19491950
* `--perf-basic-prof`
19501951
* `--perf-prof-unwinding-info`

src/node_options.cc

+1
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
709709
V8Option{},
710710
kAllowedInEnvvar);
711711
AddOption("--max-old-space-size", "", V8Option{}, kAllowedInEnvvar);
712+
AddOption("--max-semi-space-size", "", V8Option{}, kAllowedInEnvvar);
712713
AddOption("--perf-basic-prof", "", V8Option{}, kAllowedInEnvvar);
713714
AddOption(
714715
"--perf-basic-prof-only-functions", "", V8Option{}, kAllowedInEnvvar);

test/parallel/test-cli-node-options.js

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ expect('--disallow-code-generation-from-strings', 'B\n');
7272
expect('--huge-max-old-generation-size', 'B\n');
7373
expect('--jitless', 'B\n');
7474
expect('--max-old-space-size=0', 'B\n');
75+
expect('--max-semi-space-size=0', 'B\n');
7576
expect('--stack-trace-limit=100',
7677
/(\s*at f \(\[(eval|worker eval)\]:1:\d*\)\r?\n)/,
7778
'(function f() { f(); })();',

0 commit comments

Comments
 (0)