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

Unified Diff: src/heap/heap.h

Issue 1148633005: Uncommit and shrink semi-spaces only on low allocation rate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 8ecf7ae1328df4e495242eb777a128b1e7d6efc0..742aa4ba89c0c3535e7a3c7d8ab0b473479e2544 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -2127,7 +2127,9 @@ class Heap {
void SelectScavengingVisitorsTable();
- void ReduceNewSpaceSize(GCIdleTimeAction action);
+ bool HasLowAllocationRate(size_t allocaion_rate);
+
+ void ReduceNewSpaceSize(size_t allocaion_rate);
bool TryFinalizeIdleIncrementalMarking(
double idle_time_in_ms, size_t size_of_objects,
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698