Changeset 190791 in webkit
- Timestamp:
- Oct 9, 2015 7:21:40 AM (9 years ago)
- Location:
- branches/safari-601.1.46-branch/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-601.1.46-branch/Source/WebCore/ChangeLog
r190790 r190791 1 2015-10-08 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r189979. rdar://problem/23033080 4 5 2015-09-18 Chris Dumez <cdumez@apple.com> 6 7 WebContent crash in WebCore::MemoryPressureHandler::releaseCriticalMemory() with GuardMalloc when preparing to suspend 8 https://bugs.webkit.org/show_bug.cgi?id=149350 9 10 Reviewed by Antti Koivisto. 11 12 in MemoryPressureHandler::releaseCriticalMemory(), iterate over a copy of 13 Document::allDocuments() instead of iterating over allDocuments() directly. 14 Also make sure the Documents are ref'd inside the copy. 15 16 This is needed because clearing the StyleResolver of a Document may cause 17 Documents to be unref'd and removed from the allDocument() HashSet. 18 19 No new tests, already covered by existing tests. 20 21 * platform/MemoryPressureHandler.cpp: 22 (WebCore::MemoryPressureHandler::releaseCriticalMemory): 23 1 24 2015-10-08 Matthew Hanson <matthew_hanson@apple.com> 2 25 -
branches/safari-601.1.46-branch/Source/WebCore/platform/MemoryPressureHandler.cpp
r186607 r190791 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.