Title: [166597] trunk/Source/WebKit2
- Revision
- 166597
- Author
- akl...@apple.com
- Date
- 2014-04-01 10:45:02 -0700 (Tue, 01 Apr 2014)
Log Message
Invalidate CFNetwork connection cache on memory pressure.
<https://webkit.org/b/131038>
Stop holding on to cached HTTP connections if we come under memory pressure.
Reviewed by Geoff Malloc-Garen.
* NetworkProcess/cocoa/NetworkProcessCocoa.mm:
(WebKit::NetworkProcess::platformLowMemoryHandler):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (166596 => 166597)
--- trunk/Source/WebKit2/ChangeLog 2014-04-01 17:39:11 UTC (rev 166596)
+++ trunk/Source/WebKit2/ChangeLog 2014-04-01 17:45:02 UTC (rev 166597)
@@ -1,3 +1,15 @@
+2014-04-01 Andreas Kling <akl...@apple.com>
+
+ Invalidate CFNetwork connection cache on memory pressure.
+ <https://webkit.org/b/131038>
+
+ Stop holding on to cached HTTP connections if we come under memory pressure.
+
+ Reviewed by Geoff Malloc-Garen.
+
+ * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
+ (WebKit::NetworkProcess::platformLowMemoryHandler):
+
2014-04-01 Anders Carlsson <ander...@apple.com>
Tweak WKPreferences API
Modified: trunk/Source/WebKit2/NetworkProcess/cocoa/NetworkProcessCocoa.mm (166596 => 166597)
--- trunk/Source/WebKit2/NetworkProcess/cocoa/NetworkProcessCocoa.mm 2014-04-01 17:39:11 UTC (rev 166596)
+++ trunk/Source/WebKit2/NetworkProcess/cocoa/NetworkProcessCocoa.mm 2014-04-01 17:45:02 UTC (rev 166597)
@@ -38,6 +38,7 @@
typedef const struct _CFURLCache* CFURLCacheRef;
extern "C" CFURLCacheRef CFURLCacheCopySharedURLCache();
extern "C" void _CFURLCachePurgeMemoryCache(CFURLCacheRef);
+extern "C" void CFURLConnectionInvalidateConnectionCache();
#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
extern "C" void _CFURLCacheSetMinSizeForVMCachedResource(CFURLCacheRef, CFIndex);
@@ -47,6 +48,7 @@
void NetworkProcess::platformLowMemoryHandler(bool)
{
+ CFURLConnectionInvalidateConnectionCache();
_CFURLCachePurgeMemoryCache(adoptCF(CFURLCacheCopySharedURLCache()).get());
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes