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

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

Issue 1164643005: Oilpan: Add ENABLE_LAZY_SWEEPING and ENABLE_IDLE_GC to features.gypi (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 9ef1f18dee738814d719af0bcbaa2ae7138ff9bc..24d322702895b15a7c575c0c8226a78b9b090c4a 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -530,7 +530,7 @@ bool ThreadState::shouldScheduleIdleGC()
{
if (gcState() != NoGCScheduled)
return false;
-#if ENABLE(OILPAN)
+#if ENABLE(IDLE_GC)
// The estimated size is updated when the main thread finishes lazy
// sweeping. If this thread reaches here before the main thread finishes
// lazy sweeping, the thread will use the estimated size of the last GC.
@@ -554,7 +554,7 @@ bool ThreadState::shouldSchedulePreciseGC()
{
if (gcState() != NoGCScheduled)
return false;
-#if ENABLE(OILPAN)
+#if ENABLE(IDLE_GC)
return false;
#else
// The estimated size is updated when the main thread finishes lazy
@@ -699,7 +699,7 @@ void ThreadState::scheduleIdleLazySweep()
if (!isMainThread())
return;
-#if ENABLE_LAZY_SWEEPING
+#if ENABLE(LAZY_SWEEPING)
Platform::current()->currentThread()->scheduler()->postIdleTask(FROM_HERE, WTF::bind<double>(&ThreadState::performIdleLazySweep, this));
#endif
}
@@ -926,7 +926,7 @@ void ThreadState::preSweep()
#endif
#endif
-#if ENABLE_LAZY_SWEEPING
+#if ENABLE(LAZY_SWEEPING)
if (gcState() == EagerSweepScheduled) {
// Eager sweeping should happen only in testing.
setGCState(Sweeping);

Powered by Google App Engine
This is Rietveld 408576698