Repository navigation
Commit b682c58
Mark Lam
Add Options::maxHeapSizeAsRAMSizeMultiple() to limit max memory usage for testing.
https://bugs.webkit.org/show_bug.cgi?id=271986
rdar://125733077
Reviewed by Keith Miller.
Currently, we're only applying this max check to CompleteSubspace::tryAllocateSlow.
We found that adding it to LocalAllocator::allocateSlowCase can cause crashes due to failed
Structure allocations (which are fatal). As a result, the testing disruption from those crashes
far outweigh any benefits we currently get from it. So, we'll leave the max check out of
LocalAllocator::allocateSlowCase for now.
* Source/JavaScriptCore/heap/CompleteSubspace.cpp:
(JSC::CompleteSubspace::tryAllocateSlow):
* Source/JavaScriptCore/jsc.cpp:
(jscmain):
* Source/JavaScriptCore/runtime/OptionsList.h:
Canonical link: https://commits.webkit.org/276909@main1 parent 4c3661f commit b682c58
3 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4350 | 4350 | | |
4351 | 4351 | | |
4352 | 4352 | | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
4353 | 4356 | | |
4354 | 4357 | | |
4355 | 4358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| |||
0 commit comments