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

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

Issue 1272083003: Oilpan: Make the GC heuristics saner 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
« no previous file with comments | « Source/platform/heap/Heap.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 78ab339a55d101e1b0bc9466fb95a04dce6e7f62..87dc14bd9fb668eb5bf6f5f16f767b3e4e05d59e 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -322,8 +322,6 @@ public:
bool checkThread() const { return m_thread == currentThread(); }
#endif
- void didV8MajorGC();
-
void performIdleGC(double deadlineSeconds);
void performIdleLazySweep(double deadlineSeconds);
@@ -482,15 +480,15 @@ public:
// TODO(haraken): Currently CrossThreadPersistent handles are not counted.
// This wouldn't be a big deal because # of CrossThreadPersistents is small,
// but should be fixed.
- void persistentAllocated()
+ void wrapperAllocated()
{
- ++m_persistentAllocated;
+ ++m_wrapperAllocated;
}
- void persistentFreed()
+ void wrapperFreed()
{
- ++m_persistentFreed;
+ ++m_wrapperFreed;
}
- void updatePersistentCounters();
+ void updateWrapperCounters();
// Visit local thread stack and trace all pointers conservatively.
void visitStack(Visitor*);
@@ -698,8 +696,9 @@ private:
// Internal helper for GC policy handling code. Returns true if
// an urgent conservative GC is now needed due to memory pressure.
bool shouldForceMemoryPressureGC();
- size_t estimatedLiveObjectSize();
- size_t currentObjectSize();
+ double partitionAllocGrowingRate();
+ double heapGrowingRate();
+ bool judgeGCThreshold(size_t allocatedObjectSizeThreshold, double heapGrowingRateThreshold, double partitionAllocGrowingRateThreshold);
void runScheduledGC(StackState);
@@ -766,8 +765,8 @@ private:
bool m_sweepForbidden;
size_t m_noAllocationCount;
size_t m_gcForbiddenCount;
- int m_persistentAllocated;
- int m_persistentFreed;
+ int m_wrapperAllocated;
+ int m_wrapperFreed;
BaseHeap* m_heaps[NumberOfHeaps];
int m_vectorBackingHeapIndex;
« no previous file with comments | « Source/platform/heap/Heap.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698