Index: runtime/vm/scavenger.cc |
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc |
index 15f4c535f2004a5da2f5d51d496322ca7dc1e8a1..caf0d51d9d5bb68db3abdfccb14f2529b65e450c 100644 |
--- a/runtime/vm/scavenger.cc |
+++ b/runtime/vm/scavenger.cc |
@@ -159,6 +159,9 @@ class ScavengerVisitor : public ObjectPointerVisitor { |
uword raw_addr = RawObject::ToAddr(raw_obj); |
// The scavenger is only interested in objects located in the from space. |
+ if (scavenger_->to_->Contains(raw_addr)) { |
+ return; |
+ } |
ASSERT(from_->Contains(raw_addr)); |
// Read the header word of the object and determine if the object has |
// already been copied. |