Changeset 167711 in webkit


Ignore:
Timestamp:
Apr 23, 2014 9:19:24 AM (10 years ago)
Author:
akling@apple.com
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167708 r167711  
     12014-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
    1152014-04-23  Philippe Normand  <pnormand@igalia.com>
    216
  • trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm

    r167454 r167711  
    9191            dispatch_set_context(_cache_event_source, this);
    9292            dispatch_source_set_event_handler(_cache_event_source, ^{
    93                 memoryPressureHandler().respondToMemoryPressure();
     93                dispatch_async(dispatch_get_main_queue(), ^{
     94                    memoryPressureHandler().respondToMemoryPressure();
     95                });
    9496            });
    9597            dispatch_resume(_cache_event_source);
Note: See TracChangeset for help on using the changeset viewer.