Changeset 189979 in webkit
- Timestamp:
- Sep 18, 2015 1:37:41 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r189978 r189979 1 2015-09-18 Chris Dumez <cdumez@apple.com> 2 3 WebContent crash in WebCore::MemoryPressureHandler::releaseCriticalMemory() with GuardMalloc when preparing to suspend 4 https://bugs.webkit.org/show_bug.cgi?id=149350 5 6 Reviewed by Antti Koivisto. 7 8 in MemoryPressureHandler::releaseCriticalMemory(), iterate over a copy of 9 Document::allDocuments() instead of iterating over allDocuments() directly. 10 Also make sure the Documents are ref'd inside the copy. 11 12 This is needed because clearing the StyleResolver of a Document may cause 13 Documents to be unref'd and removed from the allDocument() HashSet. 14 15 No new tests, already covered by existing tests. 16 17 * platform/MemoryPressureHandler.cpp: 18 (WebCore::MemoryPressureHandler::releaseCriticalMemory): 19 1 20 2015-09-18 Brent Fulgham <bfulgham@apple.com> 2 21 -
trunk/Source/WebCore/platform/MemoryPressureHandler.cpp
r188619 r189979 130 130 { 131 131 ReliefLogger log("Discard StyleResolvers"); 132 for (auto* document : Document::allDocuments()) 132 Vector<RefPtr<Document>> documents; 133 copyToVector(Document::allDocuments(), documents); 134 for (auto& document : documents) 133 135 document->clearStyleResolver(); 134 136 }
Note: See TracChangeset
for help on using the changeset viewer.