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
546
546
547
547
Silence all process warnings (including deprecations).
548
548
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
+
549
557
### ` --openssl-config=file `
550
558
<!-- YAML
551
559
added: v6.9.0
@@ -1282,6 +1290,7 @@ Node.js options that are allowed are:
1282
1290
* ` --no-deprecation `
1283
1291
* ` --no-force-async-hooks-checks `
1284
1292
* ` --no-warnings `
1293
+ * ` --node-memory-debug `
1285
1294
* ` --openssl-config `
1286
1295
* ` --pending-deprecation `
1287
1296
* ` --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.
278
278
.It Fl -no-warnings
279
279
Silence all process warnings (including deprecations).
280
280
.
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
+ .
281
285
.It Fl -openssl-config Ns = Ns Ar file
282
286
Load an OpenSSL configuration file on startup.
283
287
Among 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(
762
762
kAllowedInEnvironment );
763
763
764
764
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" );
765
771
}
766
772
767
773
inline std::string RemoveBrackets (const std::string& host) {
You can’t perform that action at this time.
0 commit comments