Title: [179737] trunk/Source/WebCore
- Revision
- 179737
- Author
- [email protected]
- Date
- 2015-02-05 19:14:22 -0800 (Thu, 05 Feb 2015)
Log Message
[iOS] Run a full garbage collection on memory warning.
<https://webkit.org/b/141313>
<rdar://problem/19738024>
Reviewed by Chris Dumez.
Make sure that we run a full GC when trying to free up memory, as this might
be our last chance to execute before the kernel suspends this process.
This aligns WebKit2 with the old WebKit1 behavior.
* platform/cocoa/MemoryPressureHandlerCocoa.mm:
(WebCore::MemoryPressureHandler::platformReleaseMemory):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (179736 => 179737)
--- trunk/Source/WebCore/ChangeLog 2015-02-06 02:21:40 UTC (rev 179736)
+++ trunk/Source/WebCore/ChangeLog 2015-02-06 03:14:22 UTC (rev 179737)
@@ -1,3 +1,20 @@
+2015-02-05 Andreas Kling <[email protected]>
+
+ [iOS] Run a full garbage collection on memory warning.
+ <https://webkit.org/b/141313>
+ <rdar://problem/19738024>
+
+ Reviewed by Chris Dumez.
+
+ Make sure that we run a full GC when trying to free up memory, as this might
+ be our last chance to execute before the kernel suspends this process.
+
+ This aligns WebKit2 with the old WebKit1 behavior.
+
+ * platform/cocoa/MemoryPressureHandlerCocoa.mm:
+ (WebCore::MemoryPressureHandler::platformReleaseMemory):
+
+
2015-02-05 Hyungwook Lee <[email protected]>
Fix ASSERTION FAILED: !root->needsLayout() in FrameView::layout()
Modified: trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm (179736 => 179737)
--- trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2015-02-06 02:21:40 UTC (rev 179736)
+++ trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2015-02-06 03:14:22 UTC (rev 179737)
@@ -59,6 +59,13 @@
IOSurfacePool::sharedPool().discardAllSurfaces();
}
#endif
+
+#if PLATFORM(IOS)
+ {
+ ReliefLogger log("Collecting _javascript_ garbage");
+ gcController().garbageCollectNow();
+ }
+#endif
}
static dispatch_source_t _cache_event_source = 0;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes