Chromium Code Reviews

Unified Diff: Source/heap/ThreadState.cpp

Issue 181823004: Fix test crashes by doing an additional GC on cleanup. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/ThreadState.cpp
diff --git a/Source/heap/ThreadState.cpp b/Source/heap/ThreadState.cpp
index 4bd7a10b5e29644b1ba2894aee1a793d2309d9a0..ce8db96a036260fa390aec3090da0bf9198a3495 100644
--- a/Source/heap/ThreadState.cpp
+++ b/Source/heap/ThreadState.cpp
@@ -298,6 +298,8 @@ void ThreadState::cleanup()
// After this GC we expect heap to be empty because
// preCleanup tasks should have cleared all persistent
// handles that were externally owned.
+ // FIXME: oilpan: get rid of the additional GC.
haraken 2014/02/27 11:30:31 Just help me understand: Why is this a FIXME? I gu
Vyacheslav Egorov (Chromium) 2014/02/27 11:32:26 Because in the end everything will be moved to the
haraken 2014/02/27 11:37:20 I'm not sure how realistic it is. We'll anyway hav
+ Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
haraken 2014/02/27 11:30:31 Are two GCs enough?
Vyacheslav Egorov (Chromium) 2014/02/27 11:32:26 It is enough for the test we are trying to fix.
// Verify that all heaps are empty now.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine