Changeset 152340 in webkit


Ignore:
Timestamp:
Jul 2, 2013 10:54:31 PM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[WK2] Invalidate FontCache before purging MemoryCache upon WebProcess termination/closure
https://bugs.webkit.org/show_bug.cgi?id=118280

Reviewed by Darin Adler.

Invalidate the FontCache before disabling and purging the MemoryCache in WebProcess::didClose
and WebProcess::terminate. This frees up additional references to objects that were held
by the FontCache, reducing the amount of 'LEAK: *' output when exiting MiniBrowser or
WebKitTestRunner in debug builds.

  • WebProcess/WebProcess.cpp:

(WebKit::WebProcess::terminate):
(WebKit::WebProcess::didClose):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r152328 r152340  
     12013-07-02  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [WK2] Invalidate FontCache before purging MemoryCache upon WebProcess termination/closure
     4        https://bugs.webkit.org/show_bug.cgi?id=118280
     5
     6        Reviewed by Darin Adler.
     7
     8        Invalidate the FontCache before disabling and purging the MemoryCache in WebProcess::didClose
     9        and WebProcess::terminate. This frees up additional references to objects that were held
     10        by the FontCache, reducing the amount of 'LEAK: *' output when exiting MiniBrowser or
     11        WebKitTestRunner in debug builds.
     12
     13        * WebProcess/WebProcess.cpp:
     14        (WebKit::WebProcess::terminate):
     15        (WebKit::WebProcess::didClose):
     16
    1172013-07-02  Jessie Berlin  <jberlin@apple.com>
    218
  • trunk/Source/WebKit2/WebProcess/WebProcess.cpp

    r151235 r152340  
    617617#ifndef NDEBUG
    618618    gcController().garbageCollectNow();
     619    fontCache()->invalidate();
    619620    memoryCache()->setDisabled(true);
    620621#endif
     
    669670
    670671    gcController().garbageCollectSoon();
     672    fontCache()->invalidate();
    671673    memoryCache()->setDisabled(true);
    672674#endif   
Note: See TracChangeset for help on using the changeset viewer.