Index: src/heap/array-buffer-tracker-inl.h |
diff --git a/src/heap/array-buffer-tracker-inl.h b/src/heap/array-buffer-tracker-inl.h |
index 7f6e43af58720c3dc8258f6ebd975178c92f8c58..a176744e7af0f27ae7a685d2991b6fd376135416 100644 |
--- a/src/heap/array-buffer-tracker-inl.h |
+++ b/src/heap/array-buffer-tracker-inl.h |
@@ -44,8 +44,7 @@ void ArrayBufferTracker::Unregister(Heap* heap, JSArrayBuffer* buffer) { |
DCHECK_NOT_NULL(tracker); |
length = tracker->Remove(buffer).second; |
} |
- heap->update_amount_of_external_allocated_memory( |
- -static_cast<intptr_t>(length)); |
+ heap->update_external_memory(-static_cast<intptr_t>(length)); |
} |
void LocalArrayBufferTracker::Add(Key key, const Value& value) { |