From: Michael Lippautz Date: Mon, 31 Aug 2015 21:11:15 +0000 (+0200) Subject: [heap] Properly decrement amount of externally allocated memory X-Git-Tag: upstream/4.7.83~553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=206f12abee3f1e7eda8fc6521d48f3c319460ee1;p=platform%2Fupstream%2Fv8.git [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} --- diff --git a/src/heap/heap.cc b/src/heap/heap.cc index a4357f1..086f5cd 100644 --- a/src/heap/heap.cc +++ b/src/heap/heap.cc @@ -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_