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

Unified Diff: src/heap/heap.h

Issue 1108133003: Shrink new space and uncommit from space in idle notification during long idle times. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | 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 06f93040925c85118914093b2769ac2fc7f5b3f6..ed288ac282bc4dadaeb6e5361326db2fa27a41d6 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -2066,11 +2066,11 @@ class Heap {
void SelectScavengingVisitorsTable();
- void IdleMarkCompact(const char* message);
+ void ReduceNewSpaceSize(bool is_long_idle_notification);
bool TryFinalizeIdleIncrementalMarking(
- double idle_time_in_ms, size_t size_of_objects,
- size_t mark_compact_speed_in_bytes_per_ms);
+ bool is_long_idle_notification, double idle_time_in_ms,
+ size_t size_of_objects, size_t mark_compact_speed_in_bytes_per_ms);
void ClearObjectStats(bool clear_last_time_stats = false);
@@ -2114,6 +2114,7 @@ class Heap {
IncrementalMarking incremental_marking_;
GCIdleTimeHandler gc_idle_time_handler_;
+
unsigned int gc_count_at_last_idle_gc_;
// These two counters are monotomically increasing and never reset.
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698