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

Unified Diff: runtime/vm/object_graph_test.cc

Issue 1179973005: Make ObjectGraph wait for concurrent sweeper before using mark bits (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « runtime/vm/object_graph.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_graph_test.cc
diff --git a/runtime/vm/object_graph_test.cc b/runtime/vm/object_graph_test.cc
index 66771dbd564d056d4fa421cb35e80d1be9ae5160..00f77685bbc6256b1cebd6cafc6270432cc4b515 100644
--- a/runtime/vm/object_graph_test.cc
+++ b/runtime/vm/object_graph_test.cc
@@ -112,6 +112,8 @@ TEST_CASE(ObjectGraph) {
{
HANDLESCOPE(isolate);
Array& path = Array::Handle(Array::New(6, Heap::kNew));
+ // Trigger a full GC to increase probability of concurrent tasks.
+ isolate->heap()->CollectAllGarbage();
intptr_t length = graph.RetainingPath(&c, path);
EXPECT_LE(3, length);
Array& expected_c = Array::Handle();
« no previous file with comments | « runtime/vm/object_graph.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698