File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1692,6 +1692,9 @@ This flag takes precedence over `--max-old-space-size` when both are specified.
16921692The ` PERCENTAGE ` parameter must be a number greater than 0 and up to 100. representing the percentage
16931693of available system memory to allocate to the V8 heap.
16941694
1695+ ** Note:** This flag utilizes --max-old-space-size, which is unreliable on 32-bit platforms due to
1696+ integer overflow issues.
1697+
16951698``` bash
16961699# Using 50% of available system memory
16971700node --max-old-space-size-percentage=50 index.js
Original file line number Diff line number Diff line change 352352.Ar percentage
353353parameter must be a number greater than 0 and up to 100, representing the percentage
354354of available system memory to allocate to the V8 heap.
355+ .Pp
356+ Note: This flag utilizes --max-old-space-size, which is unreliable on 32-bit platforms due to
357+ integer overflow issues.
355358.
356359.It Fl -napi-modules
357360This option is a no-op.
Original file line number Diff line number Diff line change 22
33// This test validates the --max-old-space-size-percentage flag functionality
44
5- require ( '../common' ) ;
5+ const common = require ( '../common' ) ;
6+ // This flag utilizes --max-old-space-size, which is unreliable on
7+ // 32-bit platforms due to integer overflow issues.
8+ common . skipIf32Bits ( ) ;
9+
610const assert = require ( 'node:assert' ) ;
711const { spawnSync } = require ( 'child_process' ) ;
812const os = require ( 'os' ) ;
You can’t perform that action at this time.
0 commit comments