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

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

Issue 1297493002: Oilpan: Remove Heap::s_heapSizePerPersistent (Closed) 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 | « no previous file | 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..438bf79dc575d63dddc32266e193dcfb67f3135e 100644
--- a/Source/platform/heap/Heap.h
+++ b/Source/platform/heap/Heap.h
@@ -1019,6 +1019,8 @@ public:
return info;
}
+ static void setMarkedObjectSizeAtLastCompleteSweep(size_t size) { releaseStore(&s_markedObjectSizeAtLastCompleteSweep, size); }
+ static size_t markedObjectSizeAtLastCompleteSweep() { return acquireLoad(&s_markedObjectSizeAtLastCompleteSweep); }
static void increaseAllocatedObjectSize(size_t delta) { atomicAdd(&s_allocatedObjectSize, static_cast<long>(delta)); }
static void decreaseAllocatedObjectSize(size_t delta) { atomicSubtract(&s_allocatedObjectSize, static_cast<long>(delta)); }
static size_t allocatedObjectSize() { return acquireLoad(&s_allocatedObjectSize); }
@@ -1035,8 +1037,6 @@ public:
static void increaseCollectedPersistentCount(size_t delta) { atomicAdd(&s_collectedPersistentCount, static_cast<long>(delta)); }
static size_t collectedPersistentCount() { return acquireLoad(&s_collectedPersistentCount); }
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_markedObjectSizeAtLastCompleteSweep;
static size_t s_persistentCount;
static size_t s_persistentCountAtLastGC;
static size_t s_collectedPersistentCount;
static size_t s_partitionAllocSizeAtLastGC;
- static size_t s_heapSizePerPersistent;
static double s_estimatedMarkingTimePerByte;
friend class ThreadState;
« no previous file with comments | « no previous file | Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698