Index: runtime/vm/scavenger.cc |
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc |
index 03f0912a395582ebf2fa1d531941916b0d002ded..306a78a4978ac104cb62f3d870690a344235ff12 100644 |
--- a/runtime/vm/scavenger.cc |
+++ b/runtime/vm/scavenger.cc |
@@ -464,11 +464,9 @@ void Scavenger::IterateStoreBuffers(Isolate* isolate, |
total_count += count; |
while (!pending->IsEmpty()) { |
RawObject* raw_object = pending->Pop(); |
- if (raw_object->IsFreeListElement()) { |
- // TODO(rmacnak): Forwarding corpse from become. Probably we should also |
- // visit the store buffer blocks during become, and mark any forwardees |
- // as remembered if their forwarders are remembered to satisfy the |
- // following assert. |
+ if (raw_object->IsForwardingCorpse()) { |
+ // A source object in a become was a remembered object, but we do |
+ // not visit the store buffer during become to remove it. |
continue; |
} |
ASSERT(raw_object->IsRemembered()); |