Title: [152896] releases/WebKitGTK/webkit-2.0/Source/WebKit2
Revision
152896
Author
[email protected]
Date
2013-07-19 05:11:56 -0700 (Fri, 19 Jul 2013)

Log Message

Merge r152340 - [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):

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.0/Source/WebKit2/ChangeLog (152895 => 152896)


--- releases/WebKitGTK/webkit-2.0/Source/WebKit2/ChangeLog	2013-07-19 12:07:43 UTC (rev 152895)
+++ releases/WebKitGTK/webkit-2.0/Source/WebKit2/ChangeLog	2013-07-19 12:11:56 UTC (rev 152896)
@@ -1,3 +1,19 @@
+2013-07-02  Zan Dobersek  <[email protected]>
+
+        [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):
+
 2013-07-05  Xabier Rodriguez Calvar  <[email protected]>
 
         [GTK] WebKit2 test TestWebKitFaviconDatabase times out with recent glib

Modified: releases/WebKitGTK/webkit-2.0/Source/WebKit2/WebProcess/WebProcess.cpp (152895 => 152896)


--- releases/WebKitGTK/webkit-2.0/Source/WebKit2/WebProcess/WebProcess.cpp	2013-07-19 12:07:43 UTC (rev 152895)
+++ releases/WebKitGTK/webkit-2.0/Source/WebKit2/WebProcess/WebProcess.cpp	2013-07-19 12:11:56 UTC (rev 152896)
@@ -576,6 +576,7 @@
 {
 #ifndef NDEBUG
     gcController().garbageCollectNow();
+    fontCache()->invalidate();
     memoryCache()->setDisabled(true);
 #endif
 
@@ -628,6 +629,7 @@
     pages.clear();
 
     gcController().garbageCollectSoon();
+    fontCache()->invalidate();
     memoryCache()->setDisabled(true);
 #endif    
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to