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

Unified Diff: test/cctest/test-heap.cc

Issue 12708003: Wait in heap tests for active concurrent sweeper threads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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
« src/mark-compact.h ('K') | « src/mark-compact.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index f94fe53ca6c5771a19182693e50a7a7fbef891c3..152842befb814607c84f05200723614666a86570 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -50,7 +50,11 @@ static void InitializeVM() {
// Go through all incremental marking steps in one swoop.
static void SimulateIncrementalMarking() {
+ MarkCompactCollector* collector = HEAP->mark_compact_collector();
IncrementalMarking* marking = HEAP->incremental_marking();
+ if (collector->sweeping_pending()) {
Michael Starzinger 2013/03/11 09:50:26 There already is a predicate IsConcurrentSweepingI
Hannes Payer (out of office) 2013/03/11 10:14:52 Done.
Hannes Payer (out of office) 2013/03/11 10:14:52 Done.
+ collector->WaitUntilSweepingCompleted();
+ }
CHECK(marking->IsMarking() || marking->IsStopped());
if (marking->IsStopped()) {
marking->Start();
« src/mark-compact.h ('K') | « src/mark-compact.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698