Summary: | [WK2] Improve the network process low memory handler. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||||||
Component: | Platform | Assignee: | Andreas Kling <kling> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | barraclough, ggaren, jonlee, kling | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Andreas Kling
2014-03-08 13:02:08 PST
Created attachment 226229 [details]
Patch
Created attachment 226230 [details]
Patch
Created attachment 226236 [details]
Patch
Remove an unnecessary #include
Comment on attachment 226236 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=226236&action=review > Source/WebKit2/NetworkProcess/mac/NetworkProcessMac.mm:55 > +#if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 I think we should call this PLATFORM(MAC) now instead of !PLATFORM(IOS). > Source/WebKit2/NetworkProcess/mac/NetworkProcessMac.mm:120 > + UNUSED_PARAM(critical); I suggest commenting out the argument name instead of using UNUSED_PARAM, since the former will actually give a compile error if we use the thing we say we’re not using. > Source/WebKit2/NetworkProcess/mac/NetworkProcessMac.mm:123 > + RetainPtr<CFURLCacheRef> cache = adoptCF(CFURLCacheCopySharedURLCache()); > + _CFURLCachePurgeMemoryCache(cache.get()); I think you should do this as a one-liner. No need for the local. Committed r165342: <http://trac.webkit.org/changeset/165342> This broke iOS: bug 129987 |