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

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

Issue 1193503002: Oilpan: Marking time measurement should not measure the time taken in postGC() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | no next file » | 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 0adea02c3daaa03841489548be8fbe938a071c22..db7500b6eab5290571dac931d636219b156ae153 100644
--- a/Source/platform/heap/Heap.cpp
+++ b/Source/platform/heap/Heap.cpp
@@ -2039,8 +2039,6 @@ void Heap::collectGarbage(ThreadState::StackState stackState, ThreadState::GCTyp
// we should have crashed during marking before getting here.)
orphanedPagePool()->decommitOrphanedPages();
- postGC(gcType);
-
double markingTimeInMilliseconds = WTF::currentTimeMS() - timeStamp;
s_estimatedMarkingTimePerByte = totalObjectSize ? (markingTimeInMilliseconds / 1000 / totalObjectSize) : 0;
@@ -2051,6 +2049,8 @@ void Heap::collectGarbage(ThreadState::StackState stackState, ThreadState::GCTyp
Heap::reportMemoryUsageHistogram();
WTF::Partitions::reportMemoryUsageHistogram();
+ postGC(gcType);
+
if (state->isMainThread())
ScriptForbiddenScope::exit();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698