| 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;
|
|
|