Skip to content

Commit 206f12a

Browse files
committed
[heap] Properly decrement amount of externally allocated memory
[email protected] BUG=chromium:526244 LOG=N Review URL: https://codereview.chromium.org/1329493002 . Cr-Commit-Position: refs/heads/master@{#30487}
1 parent f65e61e commit 206f12a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/heap/heap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ void Heap::FreeDeadArrayBuffers(bool from_scavenge) {
18471847
}
18481848

18491849
// Do not call through the api as this code is triggered while doing a GC.
1850-
amount_of_external_allocated_memory_ += FreeDeadArrayBuffersHelper(
1850+
amount_of_external_allocated_memory_ -= FreeDeadArrayBuffersHelper(
18511851
isolate_,
18521852
from_scavenge ? live_array_buffers_for_scavenge_ : live_array_buffers_,
18531853
from_scavenge ? not_yet_discovered_array_buffers_for_scavenge_

0 commit comments

Comments
 (0)