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

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

Issue 1085023002: patch from issue 1063083002 at patchset 20001 (http://crrev.com/1063083002#ps20001) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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.h ('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/Heap.cpp
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp
index 876a650425a80bc41f97a856b5a833eefbb6dbfd..01306a3ede2d72a2538919c271b4a3abdc9769f6 100644
--- a/Source/platform/heap/Heap.cpp
+++ b/Source/platform/heap/Heap.cpp
@@ -2657,24 +2657,6 @@ void Heap::resetHeapCounters()
s_allocatedObjectSize = 0;
s_markedObjectSize = 0;
-
- // Similarly, reset the amount of externally allocated memory.
- s_externallyAllocatedBytes = 0;
- s_externallyAllocatedBytesAlive = 0;
-
- s_requestedUrgentGC = false;
-}
-
-void Heap::requestUrgentGC()
-{
- // The urgent-gc flag will be considered the next time an out-of-line
- // allocation is made. Bump allocations from the current block will
- // go ahead until it can no longer service an allocation request.
- //
- // FIXME: if that delays urgently needed GCs for too long, consider
- // flushing out per-heap "allocation points" to trigger the GC
- // right away.
- releaseStore(&s_requestedUrgentGC, 1);
}
Visitor* Heap::s_markingVisitor;
@@ -2694,10 +2676,7 @@ size_t Heap::s_markedObjectSize = 0;
// We don't want to use 0 KB for the initial value because it may end up
// triggering the first GC of some thread too prematurely.
size_t Heap::s_estimatedLiveObjectSize = 512 * 1024;
-
-size_t Heap::s_externallyAllocatedBytes = 0;
-size_t Heap::s_externallyAllocatedBytesAlive = 0;
-unsigned Heap::s_requestedUrgentGC = false;
+size_t Heap::s_externalObjectSizeAtLastGC = 0;
double Heap::s_estimatedMarkingTimePerByte = 0.0;
} // namespace blink
« no previous file with comments | « Source/platform/heap/Heap.h ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698