Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 2686533003: Move postGC out of CrossThreadPersistentRegion::LockScope (Closed)
Patch Set: fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/heap/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index c35427805c97a2dc9e2db72ebea7fbfa64182bd2..dd9dfe91ff5591b5cad6e2cec4d57920884e79e3 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -391,6 +391,11 @@ void ThreadHeap::postGC(BlinkGC::GCType gcType) {
state->postGC(gcType);
}
+void ThreadHeap::preSweep(BlinkGC::GCType gcType) {
+ for (ThreadState* state : m_threads)
+ state->preSweep(gcType);
+}
+
void ThreadHeap::processMarkingStack(Visitor* visitor) {
// Ephemeron fixed point loop.
do {
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.h ('k') | third_party/WebKit/Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698