Commit 206f12ab authored by Michael Lippautz's avatar Michael Lippautz

[heap] Properly decrement amount of externally allocated memory

TBR=mstarzinger@chromium.org
BUG=chromium:526244
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#30487}
parent f65e61ef
...@@ -1847,7 +1847,7 @@ void Heap::FreeDeadArrayBuffers(bool from_scavenge) { ...@@ -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. // 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_, isolate_,
from_scavenge ? live_array_buffers_for_scavenge_ : live_array_buffers_, from_scavenge ? live_array_buffers_for_scavenge_ : live_array_buffers_,
from_scavenge ? not_yet_discovered_array_buffers_for_scavenge_ from_scavenge ? not_yet_discovered_array_buffers_for_scavenge_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment