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

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, 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 c098f13abb01baaeb028f556f20bbfca355640a8..8c44b0ce73de2e979c4dcf1b978ca43318b769af 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -329,6 +329,9 @@ 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 shouldSchedulePreciseGCOnNavigation(float estimatedRemovalRatio);
void scheduleGCIfNeeded();
void setGCState(GCState);
GCState gcState() const;

Powered by Google App Engine
This is Rietveld 408576698