Title: [167711] trunk/Source/WebCore
- Revision
- 167711
- Author
- akl...@apple.com
- Date
- 2014-04-23 09:19:24 -0700 (Wed, 23 Apr 2014)
Log Message
[iOS WebKit1] MemoryPressureHandler::respondToMemoryPressure called on wrong thread.
<https://webkit.org/b/132041>
<rdar://problem/16687238>
Always dispatch the memory pressure relief code on the main queue.
This is really only needed for iOS/WK1, but we might as well share the code.
Reviewed by Michael Saboff.
* platform/cocoa/MemoryPressureHandlerCocoa.mm:
(WebCore::MemoryPressureHandler::install):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (167710 => 167711)
--- trunk/Source/WebCore/ChangeLog 2014-04-23 15:38:31 UTC (rev 167710)
+++ trunk/Source/WebCore/ChangeLog 2014-04-23 16:19:24 UTC (rev 167711)
@@ -1,3 +1,17 @@
+2014-04-22 Andreas Kling <akl...@apple.com>
+
+ [iOS WebKit1] MemoryPressureHandler::respondToMemoryPressure called on wrong thread.
+ <https://webkit.org/b/132041>
+ <rdar://problem/16687238>
+
+ Always dispatch the memory pressure relief code on the main queue.
+ This is really only needed for iOS/WK1, but we might as well share the code.
+
+ Reviewed by Michael Saboff.
+
+ * platform/cocoa/MemoryPressureHandlerCocoa.mm:
+ (WebCore::MemoryPressureHandler::install):
+
2014-04-23 Philippe Normand <pnorm...@igalia.com>
[GTK] ShadowRoot API was removed in r164131
Modified: trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm (167710 => 167711)
--- trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2014-04-23 15:38:31 UTC (rev 167710)
+++ trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2014-04-23 16:19:24 UTC (rev 167711)
@@ -90,7 +90,9 @@
if (_cache_event_source) {
dispatch_set_context(_cache_event_source, this);
dispatch_source_set_event_handler(_cache_event_source, ^{
- memoryPressureHandler().respondToMemoryPressure();
+ dispatch_async(dispatch_get_main_queue(), ^{
+ memoryPressureHandler().respondToMemoryPressure();
+ });
});
dispatch_resume(_cache_event_source);
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes