Title: [165631] trunk/Source/WebCore
Revision
165631
Author
akl...@apple.com
Date
2014-03-14 11:08:19 -0700 (Fri, 14 Mar 2014)

Log Message

[Mac] Remove NSURLCache logic from WebCore pressure relief code.
<https://webkit.org/b/130248>

The NSURLCache lives in the networking process and should be cleared
on that end. Furthermore, this code doesn't really do what we thought
it was doing; it merely sets and and resets the limits. No truncation
ever occurred. The intended functionality was implemented in r165342.

Reviewed by Anders Carlsson.

* platform/mac/MemoryPressureHandlerMac.mm:
(WebCore::MemoryPressureHandler::releaseMemory):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (165630 => 165631)


--- trunk/Source/WebCore/ChangeLog	2014-03-14 17:54:37 UTC (rev 165630)
+++ trunk/Source/WebCore/ChangeLog	2014-03-14 18:08:19 UTC (rev 165631)
@@ -1,5 +1,20 @@
 2014-03-14  Andreas Kling  <akl...@apple.com>
 
+        [Mac] Remove NSURLCache logic from WebCore pressure relief code.
+        <https://webkit.org/b/130248>
+
+        The NSURLCache lives in the networking process and should be cleared
+        on that end. Furthermore, this code doesn't really do what we thought
+        it was doing; it merely sets and and resets the limits. No truncation
+        ever occurred. The intended functionality was implemented in r165342.
+
+        Reviewed by Anders Carlsson.
+
+        * platform/mac/MemoryPressureHandlerMac.mm:
+        (WebCore::MemoryPressureHandler::releaseMemory):
+
+2014-03-14  Andreas Kling  <akl...@apple.com>
+
         Simplify jettisoning of style resolvers on memory pressure.
         <https://webkit.org/b/129644>
 

Modified: trunk/Source/WebCore/platform/mac/MemoryPressureHandlerMac.mm (165630 => 165631)


--- trunk/Source/WebCore/platform/mac/MemoryPressureHandlerMac.mm	2014-03-14 17:54:37 UTC (rev 165630)
+++ trunk/Source/WebCore/platform/mac/MemoryPressureHandlerMac.mm	2014-03-14 18:08:19 UTC (rev 165631)
@@ -154,11 +154,6 @@
     pageCache()->setCapacity(0);
     pageCache()->setCapacity(savedPageCacheCapacity);
 
-    NSURLCache *nsurlCache = [NSURLCache sharedURLCache];
-    NSUInteger savedNsurlCacheMemoryCapacity = [nsurlCache memoryCapacity];
-    [nsurlCache setMemoryCapacity:0];
-    [nsurlCache setMemoryCapacity:savedNsurlCacheMemoryCapacity];
-
     fontCache()->purgeInactiveFontData();
 
     memoryCache()->pruneToPercentage(0);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to