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

Unified Diff: Source/platform/heap/Heap.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/Handle.h ('k') | Source/platform/heap/Heap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Heap.h
diff --git a/Source/platform/heap/Heap.h b/Source/platform/heap/Heap.h
index fd8da32387b87e85ca04f5ca93267a7104388095..d7ea9fb18eb022ff45837de918691b7c3527d594 100644
--- a/Source/platform/heap/Heap.h
+++ b/Source/platform/heap/Heap.h
@@ -1024,19 +1024,19 @@ public:
static size_t allocatedObjectSize() { return acquireLoad(&s_allocatedObjectSize); }
static void increaseMarkedObjectSize(size_t delta) { atomicAdd(&s_markedObjectSize, static_cast<long>(delta)); }
static size_t markedObjectSize() { return acquireLoad(&s_markedObjectSize); }
+ static void setMarkedObjectSizeAtLastCompleteSweep(size_t size) { releaseStore(&s_markedObjectSizeAtLastCompleteSweep, size); }
+ static size_t markedObjectSizeAtLastCompleteSweep() { return acquireLoad(&s_markedObjectSizeAtLastCompleteSweep); }
static void increaseAllocatedSpace(size_t delta) { atomicAdd(&s_allocatedSpace, static_cast<long>(delta)); }
static void decreaseAllocatedSpace(size_t delta) { atomicSubtract(&s_allocatedSpace, static_cast<long>(delta)); }
static size_t allocatedSpace() { return acquireLoad(&s_allocatedSpace); }
static size_t objectSizeAtLastGC() { return acquireLoad(&s_objectSizeAtLastGC); }
- static void increasePersistentCount(size_t delta) { atomicAdd(&s_persistentCount, static_cast<long>(delta)); }
- static void decreasePersistentCount(size_t delta) { atomicSubtract(&s_persistentCount, static_cast<long>(delta)); }
- static size_t persistentCount() { return acquireLoad(&s_persistentCount); }
- static size_t persistentCountAtLastGC() { return acquireLoad(&s_persistentCountAtLastGC); }
- static void increaseCollectedPersistentCount(size_t delta) { atomicAdd(&s_collectedPersistentCount, static_cast<long>(delta)); }
- static size_t collectedPersistentCount() { return acquireLoad(&s_collectedPersistentCount); }
+ static void increaseWrapperCount(size_t delta) { atomicAdd(&s_wrapperCount, static_cast<long>(delta)); }
+ static void decreaseWrapperCount(size_t delta) { atomicSubtract(&s_wrapperCount, static_cast<long>(delta)); }
+ static size_t wrapperCount() { return acquireLoad(&s_wrapperCount); }
+ static size_t wrapperCountAtLastGC() { return acquireLoad(&s_wrapperCountAtLastGC); }
+ static void increaseCollectedWrapperCount(size_t delta) { atomicAdd(&s_collectedWrapperCount, static_cast<long>(delta)); }
+ static size_t collectedWrapperCount() { return acquireLoad(&s_collectedWrapperCount); }
static size_t partitionAllocSizeAtLastGC() { return acquireLoad(&s_partitionAllocSizeAtLastGC); }
- static size_t heapSizePerPersistent() { return acquireLoad(&s_heapSizePerPersistent); }
- static void setHeapSizePerPersistent(size_t size) { releaseStore(&s_heapSizePerPersistent, size); }
static double estimatedMarkingTime();
static void reportMemoryUsageHistogram();
@@ -1081,11 +1081,11 @@ private:
static size_t s_allocatedObjectSize;
static size_t s_objectSizeAtLastGC;
static size_t s_markedObjectSize;
- static size_t s_persistentCount;
- static size_t s_persistentCountAtLastGC;
- static size_t s_collectedPersistentCount;
+ static size_t s_markedObjectSizeAtLastCompleteSweep;
+ static size_t s_wrapperCount;
+ static size_t s_wrapperCountAtLastGC;
+ static size_t s_collectedWrapperCount;
static size_t s_partitionAllocSizeAtLastGC;
- static size_t s_heapSizePerPersistent;
static double s_estimatedMarkingTimePerByte;
friend class ThreadState;
« no previous file with comments | « Source/platform/heap/Handle.h ('k') | Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698