2024-10-07 18:06:47 -05:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Omer Katz <omerkatz@chromium.org>
|
|
|
|
Date: Thu, 19 Sep 2024 10:50:09 +0200
|
|
|
|
Subject: 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 <rlau@redhat.com>
|
|
|
|
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
|
|
|
Reviewed-By: Michaël Zasso <targos@protonmail.com>
|
|
|
|
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
|
|
|
|
|
|
|
|
diff --git a/doc/api/cli.md b/doc/api/cli.md
|
2025-02-14 15:53:34 +01:00
|
|
|
index 770d2ca4fcf003352c2c12815ac885a7a5e67b7f..4af66f690e626b0159a88d58f6ee81391573ebab 100644
|
2024-10-07 18:06:47 -05:00
|
|
|
--- a/doc/api/cli.md
|
|
|
|
+++ b/doc/api/cli.md
|
2025-02-14 15:53:34 +01:00
|
|
|
@@ -3232,7 +3232,6 @@ V8 options that are allowed are:
|
2024-10-07 18:06:47 -05:00
|
|
|
* `--disallow-code-generation-from-strings`
|
|
|
|
* `--enable-etw-stack-walking`
|
2024-10-08 09:54:33 -05:00
|
|
|
* `--expose-gc`
|
2024-10-07 18:06:47 -05:00
|
|
|
-* `--huge-max-old-generation-size`
|
|
|
|
* `--interpreted-frames-native-stack`
|
|
|
|
* `--jitless`
|
|
|
|
* `--max-old-space-size`
|
|
|
|
diff --git a/src/node_options.cc b/src/node_options.cc
|
2025-02-14 15:53:34 +01:00
|
|
|
index ec419cf96a14989338e3261b85c92b81ba8b50d9..5a4d536ff0d090fa6b43ea4cbd403d4aa23171c1 100644
|
2024-10-07 18:06:47 -05:00
|
|
|
--- a/src/node_options.cc
|
|
|
|
+++ b/src/node_options.cc
|
2025-02-14 15:53:34 +01:00
|
|
|
@@ -970,11 +970,6 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
|
2024-10-07 18:06:47 -05:00
|
|
|
"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
|
2025-02-14 15:53:34 +01:00
|
|
|
index 03ffe7aa03f48156f04bb527316221ec10e7e0df..69bf136559c1a8a18a7bfc444a439d161f622635 100644
|
2024-10-07 18:06:47 -05:00
|
|
|
--- a/test/parallel/test-cli-node-options.js
|
|
|
|
+++ b/test/parallel/test-cli-node-options.js
|
2025-02-14 15:53:34 +01:00
|
|
|
@@ -72,7 +72,6 @@ if (common.hasCrypto) {
|
2024-10-07 18:06:47 -05:00
|
|
|
expect('--abort_on-uncaught_exception', 'B\n');
|
|
|
|
expect('--disallow-code-generation-from-strings', 'B\n');
|
2024-10-08 09:54:33 -05:00
|
|
|
expect('--expose-gc', 'B\n');
|
2024-10-07 18:06:47 -05:00
|
|
|
-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');
|