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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.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/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 9bda7c92564ec4b9977afc4f61b3aa8b9472646a..764d78e5e7166f4fc0dd921d5c8465d18db7aef1 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -283,7 +283,10 @@ class TestGCScope {
m_state->heap().preGC();
}
- ~TestGCScope() { m_state->heap().postGC(BlinkGC::GCWithSweep); }
+ ~TestGCScope() {
+ m_state->heap().postGC(BlinkGC::GCWithSweep);
+ m_state->heap().preSweep(BlinkGC::GCWithSweep);
+ }
private:
ThreadState* m_state;
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698