Changeset 160327 in webkit


Ignore:
Timestamp:
Dec 9, 2013 1:15:20 PM (10 years ago)
Author:
akling@apple.com
Message:

REGRESSION(r160260): Memory pressure signal causes web process to hang.
<https://webkit.org/b/125465>

Reviewed by Tim Horton.

This command caused all of my web processes to hang:

notifyutil -p org.WebKit.lowMemory

This only happens when the cache pruning code encounters a resource
using purgeable memory.

  • loader/cache/MemoryCache.cpp:

(WebCore::MemoryCache::pruneLiveResourcesToSize):

Grab the next CachedResource pointer before continuing the loop.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r160324 r160327  
     12013-12-09  Andreas Kling  <akling@apple.com>
     2
     3        REGRESSION(r160260): Memory pressure signal causes web process to hang.
     4        <https://webkit.org/b/125465>
     5
     6        Reviewed by Tim Horton.
     7
     8        This command caused all of my web processes to hang:
     9
     10            notifyutil -p org.WebKit.lowMemory
     11
     12        This only happens when the cache pruning code encounters a resource
     13        using purgeable memory.
     14
     15        * loader/cache/MemoryCache.cpp:
     16        (WebCore::MemoryCache::pruneLiveResourcesToSize):
     17
     18            Grab the next CachedResource pointer before continuing the loop.
     19
    1202013-12-09  peavo@outlook.com  <peavo@outlook.com>
    221
  • trunk/Source/WebCore/loader/cache/MemoryCache.cpp

    r160260 r160327  
    267267                return;
    268268
    269             if (current->decodedDataIsPurgeable())
     269            if (current->decodedDataIsPurgeable()) {
     270                current = prev;
    270271                continue;
     272            }
    271273
    272274            // Destroy our decoded data. This will remove us from
Note: See TracChangeset for help on using the changeset viewer.