Chromium Code Reviews| Index: runtime/vm/object.cc |
| =================================================================== |
| --- runtime/vm/object.cc (revision 45122) |
| +++ runtime/vm/object.cc (working copy) |
| @@ -758,8 +758,9 @@ |
| explicit PremarkingVisitor(Isolate* isolate) : ObjectVisitor(isolate) {} |
| void VisitObject(RawObject* obj) { |
|
Ivan Posva
2015/04/15 21:57:01
Another question could be: Why are we visiting fre
|
| - // RawInstruction objects are premarked on allocation. |
| - if (!obj->IsMarked()) { |
| + ASSERT(!obj->IsMarked()); |
| + // Free list elements should never be marked. |
| + if (!obj->IsFreeListElement()) { |
| obj->SetMarkBitUnsynchronized(); |
| } |
| } |