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

Unified Diff: src/heap-inl.h

Issue 310393003: Move most of the implementation of AdjustAmountOfExternalMemory to v8.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
« src/heap.h ('K') | « src/heap.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-inl.h
diff --git a/src/heap-inl.h b/src/heap-inl.h
index c697fedfdaac2d44da510712ef4e9fcc16df1e74..6dce95095d9b986277866669a11195f1d268aa71 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -541,7 +541,7 @@ int64_t Heap::AdjustAmountOfExternalAllocatedMemory(
amount_of_external_allocated_memory_at_last_global_gc_ = 0;
}
int64_t amount_since_last_global_gc = PromotedExternalMemorySize();
- if (amount_since_last_global_gc > external_allocation_limit_) {
+ if (amount_since_last_global_gc > 192 * MB) {
Hannes Payer (out of office) 2014/06/04 11:24:49 192?
jochen (gone - plz use gerrit) 2014/06/04 11:41:24 external_allocation_limit_ is hard-coded to 192MB,
CollectAllGarbage(kNoGCFlags, "external memory allocation limit reached");
}
} else {
« src/heap.h ('K') | « src/heap.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698