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 @@ -537,6 +537,14 @@ added: v6.0.0
537537
538538Silence all process warnings (including deprecations).
539539
540+ ### ` --node-memory-debug `
541+ <!-- YAML
542+ added: REPLACEME
543+ -->
544+
545+ Enable extra debug checks for memory leaks in Node.js internals. This is
546+ usually only useful for developers debugging Node.js itself.
547+
540548### ` --openssl-config=file `
541549<!-- YAML
542550added: v6.9.0
@@ -1278,6 +1286,7 @@ Node.js options that are allowed are:
12781286* ` --no-deprecation `
12791287* ` --no-force-async-hooks-checks `
12801288* ` --no-warnings `
1289+ * ` --node-memory-debug `
12811290* ` --openssl-config `
12821291* ` --pending-deprecation `
12831292* ` --policy-integrity `
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ These will still be enabled dynamically when `async_hooks` is enabled.
281281.It Fl -no-warnings
282282Silence all process warnings (including deprecations).
283283.
284+ .It Fl -node-memory-debug
285+ Enable extra debug checks for memory leaks in Node.js internals. This is
286+ usually only useful for developers debugging Node.js itself.
287+ .
284288.It Fl -openssl-config Ns = Ns Ar file
285289Load an OpenSSL configuration file on startup.
286290Among 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 @@ -770,6 +770,12 @@ PerProcessOptionsParser::PerProcessOptionsParser(
770770 kAllowedInEnvironment );
771771
772772 Insert (iop, &PerProcessOptions::get_per_isolate_options);
773+
774+ AddOption (" --node-memory-debug" ,
775+ " Run with extra debug checks for memory leaks in Node.js itself" ,
776+ NoOp{}, kAllowedInEnvironment );
777+ Implies (" --node-memory-debug" , " --debug-arraybuffer-allocations" );
778+ Implies (" --node-memory-debug" , " --verify-base-objects" );
773779}
774780
775781inline std::string RemoveBrackets (const std::string& host) {
You can’t perform that action at this time.
0 commit comments