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

Unified Diff: runtime/vm/object_test.cc

Issue 2964503005: Debug garbage collector does not correctly remove cross-gen garbage (Closed)
Patch Set: Created 3 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
Index: runtime/vm/object_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index 0e04a7e3151de69a296c6ea21a609ee920bb1b8e..3a78c140ee201a9fb247c66b43b3070f6da08453 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -3382,7 +3382,8 @@ ISOLATE_UNIT_TEST_CASE(WeakProperty_PreserveCrossGen) {
key ^= OneByteString::null();
value ^= OneByteString::null();
}
- isolate->heap()->CollectAllGarbage();
+ isolate->heap()->CollectGarbage(Heap::kNew);
+ isolate->heap()->CollectGarbage(Heap::kOld);
// Weak property key and value should survive due to cross-generation
// pointers.
EXPECT(weak.key() != Object::null());
@@ -3400,7 +3401,8 @@ ISOLATE_UNIT_TEST_CASE(WeakProperty_PreserveCrossGen) {
key ^= OneByteString::null();
value ^= OneByteString::null();
}
- isolate->heap()->CollectAllGarbage();
+ isolate->heap()->CollectGarbage(Heap::kNew);
+ isolate->heap()->CollectGarbage(Heap::kOld);
// Weak property key and value should survive due to cross-generation
// pointers.
EXPECT(weak.key() != Object::null());
@@ -3453,7 +3455,8 @@ ISOLATE_UNIT_TEST_CASE(WeakProperty_PreserveCrossGen) {
key ^= OneByteString::null();
value ^= OneByteString::null();
}
- isolate->heap()->CollectAllGarbage();
+ isolate->heap()->CollectGarbage(Heap::kNew);
+ isolate->heap()->CollectGarbage(Heap::kOld);
// Weak property key and value should survive due to cross-generation
// pointers.
EXPECT(weak.key() != Object::null());
@@ -3470,7 +3473,8 @@ ISOLATE_UNIT_TEST_CASE(WeakProperty_PreserveCrossGen) {
key ^= OneByteString::null();
value ^= OneByteString::null();
}
- isolate->heap()->CollectAllGarbage();
+ isolate->heap()->CollectGarbage(Heap::kNew);
+ isolate->heap()->CollectGarbage(Heap::kOld);
// Weak property key and value should survive due to cross-generation
// pointers.
EXPECT(weak.key() != Object::null());
« runtime/vm/heap.cc ('K') | « runtime/vm/heap_test.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698