Changeset 144170 in webkit
- Timestamp:
- Feb 27, 2013 4:09:18 AM (11 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r144082 r144170 1 2013-02-27 Simon Hausmann <simon.hausmann@digia.com> 2 3 REGRESSION(r137994): It made JSC tests hang and layout tests fail on ARM Thumb2 / Linux 4 https://bugs.webkit.org/show_bug.cgi?id=108632 5 6 Reviewed by Csaba Osztrogonác. 7 8 It appears that mprotect() is very slow on ARM/Linux, so disable the 9 approach of unreserved mappings there and fall back to overcomitting 10 memory, based on Uli Schlachter's recommendation. 11 12 * wtf/OSAllocatorPosix.cpp: 13 (WTF::OSAllocator::reserveUncommitted): 14 (WTF::OSAllocator::decommit): 15 1 16 2013-02-26 Roger Fong <roger_fong@apple.com> 2 17 -
trunk/Source/WTF/wtf/OSAllocatorPosix.cpp
r139974 r144170 44 44 if (result == MAP_FAILED) 45 45 CRASH(); 46 #elif OS(LINUX) 46 #elif OS(LINUX) && !CPU(ARM) 47 47 UNUSED_PARAM(usage); 48 48 UNUSED_PARAM(writable); … … 166 166 // Use PROT_NONE and MAP_LAZY to decommit the pages. 167 167 mmap(address, bytes, PROT_NONE, MAP_FIXED | MAP_LAZY | MAP_PRIVATE | MAP_ANON, -1, 0); 168 #elif OS(LINUX) 168 #elif OS(LINUX) && !CPU(ARM) 169 169 madvise(address, bytes, MADV_DONTNEED); 170 170 if (mprotect(address, bytes, PROT_NONE))
Note: See TracChangeset
for help on using the changeset viewer.