Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 23166495606b7317e20b017960c4bd42393969bd..01dd3797753076ab400d504afcfb18c792356315 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -105,6 +105,11 @@ |
Map* map, HeapObject* object) { |
typedef FlexibleBodyVisitor<StaticVisitor, JSArrayBuffer::BodyDescriptor, int> |
JSArrayBufferBodyVisitor; |
+ |
+ if (!JSArrayBuffer::cast(object)->is_external()) { |
+ Heap* heap = map->GetHeap(); |
+ heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object)); |
+ } |
return JSArrayBufferBodyVisitor::Visit(map, object); |
} |