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

Unified Diff: Source/platform/heap/ThreadState.h

Issue 1252683003: Oilpan: Schedule a precise GC when a page navigates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 0c015aeee37db03a46d4f7c03e250cddb3e39ba8..718c07e4e78fdf2995daefa4fa3207a16a22b8c9 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -185,6 +185,7 @@ public:
IdleGCScheduled,
PreciseGCScheduled,
FullGCScheduled,
+ PageNavigationGCScheduled,
haraken 2015/08/11 07:43:08 You need to add PageNavigationGCScheduled to Threa
keishi 2015/08/11 08:12:58 Please check the change to ThreadState::setGCState
GCRunning,
EagerSweepScheduled,
LazySweepScheduled,
@@ -329,6 +330,11 @@ public:
void scheduleIdleGC();
void scheduleIdleLazySweep();
void schedulePreciseGC();
+ // estimatedRemovalRatio is the estimated ratio of objects that will be no
+ // longer necessary due to the navigation.
+ bool shouldSchedulePageNavigationGC(float estimatedRemovalRatio);
haraken 2015/08/11 07:43:08 Move this declaration to the other shouldScheduleX
keishi 2015/08/11 08:12:58 Done.
+ void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio);
+ void schedulePageNavigationGC();
void scheduleGCIfNeeded();
void setGCState(GCState);
GCState gcState() const;

Powered by Google App Engine
This is Rietveld 408576698