Changeset 167711 in webkit
- Timestamp:
- Apr 23, 2014 9:19:24 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167708 r167711 1 2014-04-22 Andreas Kling <akling@apple.com> 2 3 [iOS WebKit1] MemoryPressureHandler::respondToMemoryPressure called on wrong thread. 4 <https://webkit.org/b/132041> 5 <rdar://problem/16687238> 6 7 Always dispatch the memory pressure relief code on the main queue. 8 This is really only needed for iOS/WK1, but we might as well share the code. 9 10 Reviewed by Michael Saboff. 11 12 * platform/cocoa/MemoryPressureHandlerCocoa.mm: 13 (WebCore::MemoryPressureHandler::install): 14 1 15 2014-04-23 Philippe Normand <pnormand@igalia.com> 2 16 -
trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm
r167454 r167711 91 91 dispatch_set_context(_cache_event_source, this); 92 92 dispatch_source_set_event_handler(_cache_event_source, ^{ 93 memoryPressureHandler().respondToMemoryPressure(); 93 dispatch_async(dispatch_get_main_queue(), ^{ 94 memoryPressureHandler().respondToMemoryPressure(); 95 }); 94 96 }); 95 97 dispatch_resume(_cache_event_source);
Note: See TracChangeset
for help on using the changeset viewer.