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

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: WIP Created 5 years, 5 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 7c4b7a4c474887f99aed495e2f1f1f47320651ad..3677c22a9aeaa7be2bd1025f7943dc3969ec17ad 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -329,6 +329,10 @@ public:
void scheduleIdleGC();
void scheduleIdleLazySweep();
void schedulePreciseGC();
+ bool shouldSchedulePreciseGC();
haraken 2015/07/23 23:19:30 Remove this.
+ // estimatedRemovalRatio is the estimated ratio of objects that will be no
+ // longer necessary due to the navigation.
+ bool shouldSchedulePreciseGCOnNavigation(float estimatedRemovalRatio);
void scheduleGCIfNeeded();
void setGCState(GCState);
GCState gcState() const;

Powered by Google App Engine
This is Rietveld 408576698