Changeset 161169 in webkit
- Timestamp:
- Dec 30, 2013, 9:18:42 PM (13 years ago)
- Location:
- branches/jsCStack/Source/JavaScriptCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
interpreter/JSStack.cpp (modified) (1 diff)
-
interpreter/JSStack.h (modified) (1 diff)
-
runtime/Options.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jsCStack/Source/JavaScriptCore/ChangeLog
r161125 r161169 1 2013-12-30 Mark Lam <mark.lam@apple.com> 2 3 CStack: Introducing Options::maxStackSize(). 4 https://bugs.webkit.org/show_bug.cgi?id=126321. 5 6 Not yet reviewed. 7 8 We need an option to limit the JS stack size. Currently, we just change 9 the JSStack class to use this limit. 10 11 * interpreter/JSStack.cpp: 12 (JSC::JSStack::JSStack): 13 * interpreter/JSStack.h: 14 * runtime/Options.h: 15 1 16 2013-12-29 Filip Pizlo <fpizlo@apple.com> 2 17 -
branches/jsCStack/Source/JavaScriptCore/interpreter/JSStack.cpp
r161104 r161169 54 54 { 55 55 #if ENABLE(LLINT_C_LOOP) 56 size_t capacity = defaultCapacity;56 size_t capacity = Options::maxStackSize(); 57 57 ASSERT(capacity && isPageAligned(capacity)); 58 58 59 m_reservation = PageReservation::reserve(roundUpAllocationSize(capacity * sizeof(Register), commitSize), OSAllocator::JSVMStackPages);59 m_reservation = PageReservation::reserve(roundUpAllocationSize(capacity, commitSize), OSAllocator::JSVMStackPages); 60 60 setStackLimit(highAddress()); 61 61 m_commitTop = highAddress(); -
branches/jsCStack/Source/JavaScriptCore/interpreter/JSStack.h
r161036 r161169 76 76 }; 77 77 78 static const size_t defaultCapacity = 512 * 1024;79 78 static const size_t commitSize = 16 * 1024; 80 79 // Allow 8k of excess registers before we start trying to reap the stack -
branches/jsCStack/Source/JavaScriptCore/runtime/Options.h
r160821 r161169 30 30 #include <stdint.h> 31 31 #include <stdio.h> 32 #include <wtf/StdLibExtras.h> 32 33 33 34 namespace JSC { … … 94 95 v(bool, useDFGJIT, true) \ 95 96 v(bool, useRegExpJIT, true) \ 97 \ 98 v(unsigned, maxStackSize, 4 * MB) \ 96 99 \ 97 100 v(bool, crashIfCantAllocateJITMemory, false) \
Note:
See TracChangeset
for help on using the changeset viewer.