https://bugs.webkit.org/show_bug.cgi?id=81743
Patch by Hojong Han <hojong.han@samsung.com> on 2012-03-21
Reviewed by Geoffrey Garen.
Garbage collection is not triggered and new blocks are added
because overcommit is allowed by MAP_NORESERVE flag when high water mark is big enough.
* wtf/OSAllocatorPosix.cpp:
(WTF::OSAllocator::reserveAndCommit):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111580
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-03-21 Hojong Han <hojong.han@samsung.com>
+
+ Fix out of memory by allowing overcommit
+ https://bugs.webkit.org/show_bug.cgi?id=81743
+
+ Reviewed by Geoffrey Garen.
+
+ Garbage collection is not triggered and new blocks are added
+ because overcommit is allowed by MAP_NORESERVE flag when high water mark is big enough.
+
+ * wtf/OSAllocatorPosix.cpp:
+ (WTF::OSAllocator::reserveAndCommit):
+
2012-03-21 Jessie Berlin <jberlin@apple.com>
More Windows build fixing.
flags |= MAP_JIT;
#endif
-#if OS(LINUX)
+#if (OS(LINUX) && CPU(X86_64))
// Linux distros usually do not allow overcommit by default, so
// JSC's strategy of mmaping a large amount of memory upfront
// won't work very well on some systems. Fortunately there's a