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

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

Issue 2732053002: [heap] Implement simple marking in the concurrent marking thread. (Closed)
Patch Set: re-upload Created 3 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
« no previous file with comments | « src/heap/marking.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap/test-concurrent-marking.cc
diff --git a/test/cctest/heap/test-concurrent-marking.cc b/test/cctest/heap/test-concurrent-marking.cc
index 9a50f33f58b3e7eb8c8189d5fbc4b1e0c6f9db7b..ab38efbca55e3aa07857eba71ed539cb3b06968f 100644
--- a/test/cctest/heap/test-concurrent-marking.cc
+++ b/test/cctest/heap/test-concurrent-marking.cc
@@ -19,13 +19,9 @@ TEST(ConcurrentMarking) {
CcTest::InitializeVM();
Heap* heap = CcTest::heap();
ConcurrentMarking* concurrent_marking = new ConcurrentMarking(heap);
- for (int i = 0; i < 10; i++) {
- concurrent_marking->EnqueueObject(heap->undefined_value());
- }
- concurrent_marking->StartMarkingTasks(3);
- while (!concurrent_marking->IsQueueEmpty()) {
- }
- concurrent_marking->WaitForTasksToComplete();
+ concurrent_marking->AddRoot(heap->undefined_value());
+ concurrent_marking->StartMarkingTask();
+ concurrent_marking->WaitForTaskToComplete();
delete concurrent_marking;
}
« no previous file with comments | « src/heap/marking.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698