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

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

Issue 1369783002: Reinstate memory pressure Oilpan GC check post V8 major GCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: introduce conditional helper for mem-pressure GCs Created 5 years, 3 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 | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/ThreadState.h
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
index c48d2cbff9845a891bbabd8f1ac85467e658a729..01a6d614fbecf5e237be2406fa188a4b9bcec2ac 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.h
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
@@ -704,9 +704,16 @@ private:
// longer necessary due to the navigation.
bool shouldSchedulePageNavigationGC(float estimatedRemovalRatio);
- // Internal helper for GC policy handling code. Returns true if
- // an urgent conservative GC is now needed due to memory pressure.
+ // Internal helpers to handle memory pressure conditions.
+
+ // Returns true if memory use is in a near-OOM state
+ // (aka being under "memory pressure".)
bool shouldForceMemoryPressureGC();
+
+ // Returns true if shouldForceMemoryPressureGC() held and a
+ // conservative GC was performed to handle the emergency.
+ bool forceMemoryPressureGCIfNeeded();
+
size_t estimatedLiveSize(size_t currentSize, size_t sizeAtLastGC);
size_t totalMemorySize();
double heapGrowingRate();
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698