Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: src/heap/heap.cc

Issue 1329493002: [heap] Properly decrement amount of externally allocated memory (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index a4357f11fd2810df88382b46e6482cedf957d5af..086f5cd5a506df8511b52e55c7adc6d2e20a1f39 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_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698