Changeset 179737 in webkit


Ignore:
Timestamp:
Feb 5, 2015 7:14:22 PM (9 years ago)
Author:
akling@apple.com
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r179726 r179737  
     12015-02-05  Andreas Kling  <akling@apple.com>
     2
     3        [iOS] Run a full garbage collection on memory warning.
     4        <https://webkit.org/b/141313>
     5        <rdar://problem/19738024>
     6
     7        Reviewed by Chris Dumez.
     8
     9        Make sure that we run a full GC when trying to free up memory, as this might
     10        be our last chance to execute before the kernel suspends this process.
     11
     12        This aligns WebKit2 with the old WebKit1 behavior.
     13
     14        * platform/cocoa/MemoryPressureHandlerCocoa.mm:
     15        (WebCore::MemoryPressureHandler::platformReleaseMemory):
     16
     17
    1182015-02-05  Hyungwook Lee  <hyungwook.lee@navercorp.com>
    219
  • trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm

    r179500 r179737  
    6060    }
    6161#endif
     62
     63#if PLATFORM(IOS)
     64    {
     65        ReliefLogger log("Collecting JavaScript garbage");
     66        gcController().garbageCollectNow();
     67    }
     68#endif
    6269}
    6370
Note: See TracChangeset for help on using the changeset viewer.