From ed803b62d68da52d0429b4591af7d7a5b6b9b2bd Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Thu, 19 Sep 2024 10:50:09 +0200 Subject: [PATCH] cli: remove deprecated V8 flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the `--huge-max-old-generation-size` V8 flag from the `NODE_OPTIONS` allowlist. That flag was recently deprecated (it currently remains as nop, see crrev.com/c/5831467) and will soon be completely removed. PR-URL: https://github.com/nodejs/node/pull/54761 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Yagiz Nizipli --- doc/api/cli.md | 3 --- src/node_options.cc | 5 ----- test/parallel/test-cli-node-options.js | 1 - 3 files changed, 9 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 8938845c273869..ede5945461103f 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -3122,7 +3122,6 @@ V8 options that are allowed are: * `--disallow-code-generation-from-strings` * `--enable-etw-stack-walking` * `--expose-gc` -* `--huge-max-old-generation-size` * `--interpreted-frames-native-stack` * `--jitless` * `--max-old-space-size` @@ -3456,8 +3455,6 @@ documented here: ### `--harmony-shadow-realm` -### `--huge-max-old-generation-size` - ### `--jitless` ### `--interpreted-frames-native-stack` diff --git a/src/node_options.cc b/src/node_options.cc index a99bb4c383b883..77e68f5104c0b1 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -904,11 +904,6 @@ PerIsolateOptionsParser::PerIsolateOptionsParser( "disallow eval and friends", V8Option{}, kAllowedInEnvvar); - AddOption("--huge-max-old-generation-size", - "increase default maximum heap size on machines with 16GB memory " - "or more", - V8Option{}, - kAllowedInEnvvar); AddOption("--jitless", "disable runtime allocation of executable memory", V8Option{}, diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js index e898a81af09ca6..22d5a342df5d55 100644 --- a/test/parallel/test-cli-node-options.js +++ b/test/parallel/test-cli-node-options.js @@ -70,7 +70,6 @@ if (common.hasCrypto) { expect('--abort_on-uncaught_exception', 'B\n'); expect('--disallow-code-generation-from-strings', 'B\n'); expect('--expose-gc', 'B\n'); -expect('--huge-max-old-generation-size', 'B\n'); expect('--jitless', 'B\n'); expect('--max-old-space-size=0', 'B\n'); expect('--max-semi-space-size=0', 'B\n');