Changeset 193648 in webkit for trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
- Timestamp:
- Dec 7, 2015, 1:35:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
r189515 r193648 41 41 static size_t committedBytesCount = 0; 42 42 43 static size_t commitSize() 44 { 45 static size_t size = 0; 46 if (!size) 47 size = std::max(16 * 1024, getpagesize()); 48 return size; 49 } 50 43 51 static StaticLock stackStatisticsMutex; 44 52 #endif // !ENABLE(JIT) … … 56 64 ASSERT(capacity && isPageAligned(capacity)); 57 65 58 m_reservation = PageReservation::reserve(WTF::roundUpToMultipleOf(commitSize , capacity), OSAllocator::JSVMStackPages);66 m_reservation = PageReservation::reserve(WTF::roundUpToMultipleOf(commitSize(), capacity), OSAllocator::JSVMStackPages); 59 67 setStackLimit(highAddress()); 60 68 m_commitTop = highAddress(); … … 90 98 // return false. 91 99 ptrdiff_t delta = reinterpret_cast<char*>(m_commitTop) - reinterpret_cast<char*>(newTopOfStackWithReservedZone); 92 delta = WTF::roundUpToMultipleOf(commitSize , delta);100 delta = WTF::roundUpToMultipleOf(commitSize(), delta); 93 101 Register* newCommitTop = m_commitTop - (delta / sizeof(Register)); 94 102 if (newCommitTop < reservationTop())
Note:
See TracChangeset
for help on using the changeset viewer.