File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -546,6 +546,14 @@ added: v6.0.0
546546
547547Silence all process warnings (including deprecations).
548548
549+ ### ` --node-memory-debug `
550+ <!-- YAML
551+ added: REPLACEME
552+ -->
553+
554+ Enable extra debug checks for memory leaks in Node.js internals. This is
555+ usually only useful for developers debugging Node.js itself.
556+
549557### ` --openssl-config=file `
550558<!-- YAML
551559added: v6.9.0
@@ -1282,6 +1290,7 @@ Node.js options that are allowed are:
12821290* ` --no-deprecation `
12831291* ` --no-force-async-hooks-checks `
12841292* ` --no-warnings `
1293+ * ` --node-memory-debug `
12851294* ` --openssl-config `
12861295* ` --pending-deprecation `
12871296* ` --policy-integrity `
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ These will still be enabled dynamically when `async_hooks` is enabled.
278278.It Fl -no-warnings
279279Silence all process warnings (including deprecations).
280280.
281+ .It Fl -node-memory-debug
282+ Enable extra debug checks for memory leaks in Node.js internals. This is
283+ usually only useful for developers debugging Node.js itself.
284+ .
281285.It Fl -openssl-config Ns = Ns Ar file
282286Load an OpenSSL configuration file on startup.
283287Among other uses, this can be used to enable FIPS-compliant crypto if Node.js is built with
Original file line number Diff line number Diff line change @@ -762,6 +762,12 @@ PerProcessOptionsParser::PerProcessOptionsParser(
762762 kAllowedInEnvironment );
763763
764764 Insert (iop, &PerProcessOptions::get_per_isolate_options);
765+
766+ AddOption (" --node-memory-debug" ,
767+ " Run with extra debug checks for memory leaks in Node.js itself" ,
768+ NoOp{}, kAllowedInEnvironment );
769+ Implies (" --node-memory-debug" , " --debug-arraybuffer-allocations" );
770+ Implies (" --node-memory-debug" , " --verify-base-objects" );
765771}
766772
767773inline std::string RemoveBrackets (const std::string& host) {
You can’t perform that action at this time.
0 commit comments