Index: src/heap/mark-compact-inl.h |
diff --git a/src/heap/mark-compact-inl.h b/src/heap/mark-compact-inl.h |
index 584f86dc8819513643dc56dfae03751e55e747e9..cb280e2bbb0dc9a179c29d59511fddc0b5610044 100644 |
--- a/src/heap/mark-compact-inl.h |
+++ b/src/heap/mark-compact-inl.h |
@@ -38,15 +38,19 @@ |
} |
void MarkCompactCollector::MarkObject(HeapObject* obj) { |
- if (ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
+ if (ObjectMarking::IsWhite<MarkBit::NON_ATOMIC>( |
obj, MarkingState::Internal(obj))) { |
+ ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
+ obj, MarkingState::Internal(obj)); |
PushBlack(obj); |
} |
} |
void MinorMarkCompactCollector::MarkObject(HeapObject* obj) { |
- if (ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
+ if (ObjectMarking::IsWhite<MarkBit::NON_ATOMIC>( |
obj, MarkingState::External(obj))) { |
+ ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
+ obj, MarkingState::External(obj)); |
PushBlack(obj); |
} |
} |