|
| 1 | +From 6a7c1e2fbba1a28734b8a49b5c039d06aa7cb5a5 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Khem Raj < [email protected]> |
| 3 | +Date: Sat, 27 May 2017 22:30:08 -0700 |
| 4 | +Subject: [PATCH] Reduce stack limits |
| 5 | + |
| 6 | +JavaScriptCore needs to lower the thread stack limits for musl |
| 7 | +which allocates 80Kb for thread stack by default |
| 8 | + |
| 9 | +Signed-off-by: Khem Raj < [email protected]> |
| 10 | +--- |
| 11 | + Source/JavaScriptCore/runtime/Options.h | 6 +++--- |
| 12 | + 1 file changed, 3 insertions(+), 3 deletions(-) |
| 13 | + |
| 14 | +diff --git a/Source/JavaScriptCore/runtime/Options.h b/Source/JavaScriptCore/runtime/Options.h |
| 15 | +index 3d428c9b589..81e5c3c47a9 100644 |
| 16 | +--- a/Source/JavaScriptCore/runtime/Options.h |
| 17 | ++++ b/Source/JavaScriptCore/runtime/Options.h |
| 18 | +@@ -120,9 +120,9 @@ typedef const char* optionString; |
| 19 | + \ |
| 20 | + v(bool, reportMustSucceedExecutableAllocations, false, Normal, nullptr) \ |
| 21 | + \ |
| 22 | +- v(unsigned, maxPerThreadStackUsage, 4 * MB, Normal, "Max allowed stack usage by the VM") \ |
| 23 | +- v(unsigned, softReservedZoneSize, 128 * KB, Normal, "A buffer greater than reservedZoneSize that reserves space for stringifying exceptions.") \ |
| 24 | +- v(unsigned, reservedZoneSize, 64 * KB, Normal, "The amount of stack space we guarantee to our clients (and to interal VM code that does not call out to clients).") \ |
| 25 | ++ v(unsigned, maxPerThreadStackUsage, 80 * KB, Normal, "Max allowed stack usage by the VM") \ |
| 26 | ++ v(unsigned, softReservedZoneSize, 32 * KB, Normal, "A buffer greater than reservedZoneSize that reserves space for stringifying exceptions.") \ |
| 27 | ++ v(unsigned, reservedZoneSize, 16 * KB, Normal, "The amount of stack space we guarantee to our clients (and to interal VM code that does not call out to clients).") \ |
| 28 | + \ |
| 29 | + v(bool, crashIfCantAllocateJITMemory, false, Normal, nullptr) \ |
| 30 | + v(unsigned, jitMemoryReservationSize, 0, Normal, "Set this number to change the executable allocation size in ExecutableAllocatorFixedVMPool. (In bytes.)") \ |
| 31 | +-- |
| 32 | +2.13.0 |
| 33 | + |
0 commit comments