Commit 42c5544
src: assert memory calc for max-old-space-size-percentage
Add validation to ensure that --max-old-space-size-percentage cannot
be used when available memory cannot be calculated, preventing
undefined behavior when memory detection fails.
Also enhance test-process-constrained-memory.js to support testing
in constrained environments where memory calculation may fail.
PR-URL: #59460
Backport-PR-URL: #59631
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>1 parent 686ac49 commit 42c5544Copy full SHA for 42c5544
File tree
Expand file treeCollapse file tree
2 files changed
+13
-3
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
2 files changed
+13
-3
lines changedOpen diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
134 | 134 | |
135 | 135 | |
136 | 136 | |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
137 | 142 | |
138 | 143 | |
139 | 144 | |
|
Collapse file
test/parallel/test-max-old-space-size-percentage.js
Copy file name to clipboardExpand all lines: test/parallel/test-max-old-space-size-percentage.js+8-3Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | | - |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
123 | 128 | |
124 | | - |
| 129 | + |
125 | 130 | |
126 | 131 | |
127 | 132 | |
128 | 133 | |
129 | | - |
| 134 | + |
130 | 135 | |
131 | 136 | |
132 | 137 | |
|
0 commit comments