Title: [111580] trunk/Source/_javascript_Core
- Revision
- 111580
- Author
- [email protected]
- Date
- 2012-03-21 11:21:46 -0700 (Wed, 21 Mar 2012)
Log Message
Fix out of memory by allowing overcommit
https://bugs.webkit.org/show_bug.cgi?id=81743
Patch by Hojong Han <[email protected]> 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):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (111579 => 111580)
--- trunk/Source/_javascript_Core/ChangeLog 2012-03-21 18:04:39 UTC (rev 111579)
+++ trunk/Source/_javascript_Core/ChangeLog 2012-03-21 18:21:46 UTC (rev 111580)
@@ -1,3 +1,16 @@
+2012-03-21 Hojong Han <[email protected]>
+
+ 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 <[email protected]>
More Windows build fixing.
Modified: trunk/Source/_javascript_Core/wtf/OSAllocatorPosix.cpp (111579 => 111580)
--- trunk/Source/_javascript_Core/wtf/OSAllocatorPosix.cpp 2012-03-21 18:04:39 UTC (rev 111579)
+++ trunk/Source/_javascript_Core/wtf/OSAllocatorPosix.cpp 2012-03-21 18:21:46 UTC (rev 111580)
@@ -71,7 +71,7 @@
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
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes