Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index df502cb177e6d8ee103668a80c57c6c689f01bd3..6e7cbcaf1248445c212c6b4c09343c49b1e1d304 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -6536,7 +6536,7 @@ static void IndependentWeakHandle(bool global_gc, bool interlinked) { |
Local<Object> b(v8::Object::New(iso)); |
object_a.handle.Reset(iso, a); |
object_b.handle.Reset(iso, b); |
- if (interlinked) { |
+ if (interlinked && !v8::internal::FLAG_scavenge_remove_unmodified_objects) { |
a->Set(v8_str("x"), b); |
b->Set(v8_str("x"), a); |
} |
@@ -6548,7 +6548,8 @@ static void IndependentWeakHandle(bool global_gc, bool interlinked) { |
// We are relying on this creating a big flag array and reserving the space |
// up front. |
v8::Handle<Value> big_array = CompileRun("new Array(50000)"); |
- a->Set(v8_str("y"), big_array); |
+ if (!v8::internal::FLAG_scavenge_remove_unmodified_objects) |
+ a->Set(v8_str("y"), big_array); |
big_heap_size = CcTest::heap()->SizeOfObjects(); |
} |