| Summary: | [iOS] Run a full garbage collection on memory warning. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||||
| Component: | JavaScriptCore | Assignee: | Andreas Kling <kling> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | barraclough, commit-queue, ggaren, kling, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar, Performance | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Andreas Kling
2015-02-05 16:17:08 PST
Created attachment 246142 [details]
Patch
Comment on attachment 246142 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246142&action=review > Source/WebCore/platform/MemoryPressureHandler.cpp:139 > +#if PLATFORM(IOS) Since this is iOS-specific, it seems like this should be in MemoryPressureHandler::platformReleaseMemory(bool) in MemoryPressureHandlerCocoa.mm, right? Created attachment 246143 [details]
Patch
Moved the logic per Chris's excellent suggestion.
Comment on attachment 246143 [details]
Patch
r=me
Comment on attachment 246143 [details] Patch Clearing flags on attachment: 246143 Committed r179737: <http://trac.webkit.org/changeset/179737> All reviewed patches have been landed. Closing bug. I'm worried about cost here in the edge case of pathological pressure. Let's do what you suggested in person -- GC now in response to background, GC soon in response to memory warning. |