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

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
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 8ecf7ae1328df4e495242eb777a128b1e7d6efc0..95d6c806580848dcad7b64008263aacc3debe6c1 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -2127,7 +2127,10 @@ class Heap {
void SelectScavengingVisitorsTable();
- void ReduceNewSpaceSize(GCIdleTimeAction action);
+ bool HasLowAllocationRate(GCIdleTimeHandler::HeapState heap_state);
+
+ void ReduceNewSpaceSize(GCIdleTimeAction action,
+ GCIdleTimeHandler::HeapState heap_state);
bool TryFinalizeIdleIncrementalMarking(
double idle_time_in_ms, size_t size_of_objects,

Powered by Google App Engine
This is Rietveld 408576698