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

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

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
Index: Source/platform/heap/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index f7bee8ce16c2d34cb1f0cb8b76b983f3f05619c8..a530ce15902079e94776c600234cad563ecf1b9c 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -670,7 +670,7 @@ bool ThreadState::shouldSchedulePageNavigationGC(float estimatedRemovalRatio)
bool ThreadState::shouldForceConservativeGC()
{
// TODO(haraken): 400% is too large. Lower the heap growing factor.
- return judgeGCThreshold(32 * 1024 * 1024, 5.0);
+ return judgeGCThreshold(32 * 1024 * 1024, 1.2);
sof 2015/09/02 13:02:12 Change doesn't belong here (and not something you
}
void ThreadState::scheduleV8FollowupGCIfNeeded()
@@ -926,6 +926,8 @@ ThreadState::GCState ThreadState::gcState() const
void ThreadState::runScheduledGC(StackState stackState)
{
+ Heap::reportMemoryUsageForTracing();
sof 2015/09/02 13:02:12 Unrelated also?
+
ASSERT(checkThread());
if (stackState != NoHeapPointersOnStack)
return;

Powered by Google App Engine
This is Rietveld 408576698