Changeset 285187 in webkit
- Timestamp:
- Nov 2, 2021, 3:09:25 PM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/StackBounds.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r285178 r285187 1 2021-11-02 Michael Catanzaro <mcatanzaro@gnome.org> 2 3 Fails to execute JavaScript when soft stack limit is unlimited 4 https://bugs.webkit.org/show_bug.cgi?id=232328 5 6 Reviewed by Yusuke Suzuki. 7 8 Fall back to assuming an 8 MB stack limit when the real limit is unlimited. JSC needs to 9 have some maximum stack size to work with, and this is as good as any. 10 11 * wtf/StackBounds.cpp: 12 (WTF::StackBounds::currentThreadStackBoundsInternal): 13 1 14 2021-11-02 Philip Chimento <pchimento@igalia.com> 2 15 -
trunk/Source/WTF/wtf/StackBounds.cpp
r276695 r285187 66 66 getrlimit(RLIMIT_STACK, &limit); 67 67 rlim_t size = limit.rlim_cur; 68 if (size == RLIM_INFINITY) 69 size = 8 * MB; 68 70 void* bound = static_cast<char*>(origin) - size; 69 71 return StackBounds { origin, bound }; … … 126 128 getrlimit(RLIMIT_STACK, &limit); 127 129 rlim_t size = limit.rlim_cur; 130 if (size == RLIM_INFINITY) 131 size = 8 * MB; 128 132 // account for a guard page 129 133 size -= static_cast<rlim_t>(sysconf(_SC_PAGESIZE));
Note:
See TracChangeset
for help on using the changeset viewer.