Skip to content

Commit

Permalink
[heap] Properly decrement amount of externally allocated memory
Browse files Browse the repository at this point in the history
TBR=mstarzinger@chromium.org
BUG=chromium:526244
LOG=N

Review URL: https://codereview.chromium.org/1329493002 .

Cr-Commit-Position: refs/heads/master@{#30487}
  • Loading branch information
mlippautz committed Aug 31, 2015
1 parent f65e61e commit 206f12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heap/heap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ void Heap::FreeDeadArrayBuffers(bool from_scavenge) {
}

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

0 comments on commit 206f12a

Please sign in to comment.