Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index c250561523ce491b7584ebf6024cd312cace5b0a..b24e97db2e25399465496a03cd1b8237657240ee 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -532,7 +532,8 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer( |
heap, object, |
HeapObject::RawField(object, JSArrayBuffer::BodyDescriptor::kStartOffset), |
HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
- if (!JSArrayBuffer::cast(object)->is_external()) { |
+ if (!JSArrayBuffer::cast(object)->is_external() && |
+ !heap->InNewSpace(object)) { |
heap->RegisterLiveArrayBuffer(false, |
JSArrayBuffer::cast(object)->backing_store()); |
} |