Index: src/spaces-inl.h |
diff --git a/src/spaces-inl.h b/src/spaces-inl.h |
index 1973b3a3500504119ea8ea6d07d36b4c844880ae..bb505b29f291e1ebbec671276296ff1df0259250 100644 |
--- a/src/spaces-inl.h |
+++ b/src/spaces-inl.h |
@@ -348,7 +348,7 @@ void NewSpace::ShrinkStringAtAllocationBoundary(String* string, int length) { |
allocation_info_.top = |
string->address() + StringType::SizeFor(length); |
string->set_length(length); |
- if (Marking::IsBlack(Marking::MarkBitFrom(string))) { |
+ if (MarkCompactCollector::IsLiveBytesUpdateRequired(string)) { |
int delta = static_cast<int>(old_top - allocation_info_.top); |
MemoryChunk::IncrementLiveBytes(string->address(), -delta); |
} |