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

Unified Diff: src/heap/array-buffer-tracker.cc

Issue 2085893002: [heap] Internalize kExternalAllocationLimit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Initialize limit Created 4 years, 6 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 | « src/globals.h ('k') | src/heap/array-buffer-tracker-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/array-buffer-tracker.cc
diff --git a/src/heap/array-buffer-tracker.cc b/src/heap/array-buffer-tracker.cc
index e7eecf884ac02a1f5630330977e50e1e91708aab..271c2821f57207b4e26683991bdda82bcd92e472 100644
--- a/src/heap/array-buffer-tracker.cc
+++ b/src/heap/array-buffer-tracker.cc
@@ -29,7 +29,7 @@ void LocalArrayBufferTracker::Free() {
}
}
if (freed_memory > 0) {
- heap_->update_amount_of_external_allocated_freed_memory(
+ heap_->update_external_memory_concurrently_freed(
static_cast<intptr_t>(freed_memory));
}
}
@@ -68,7 +68,7 @@ void LocalArrayBufferTracker::Process(Callback callback) {
}
}
if (freed_memory > 0) {
- heap_->update_amount_of_external_allocated_freed_memory(
+ heap_->update_external_memory_concurrently_freed(
static_cast<intptr_t>(freed_memory));
}
}
@@ -82,7 +82,7 @@ void ArrayBufferTracker::FreeDeadInNewSpace(Heap* heap) {
bool empty = ProcessBuffers(page, kUpdateForwardedRemoveOthers);
CHECK(empty);
}
- heap->account_amount_of_external_allocated_freed_memory();
+ heap->account_external_memory_concurrently_freed();
}
void ArrayBufferTracker::FreeDead(Page* page) {
« no previous file with comments | « src/globals.h ('k') | src/heap/array-buffer-tracker-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698