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

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

Issue 1055193004: Oilpan: Enable lazy sweeping on non-oilpan builds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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/HeapTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index 699866a4516830374b32646ac8351c86a8c97e33..5e97927b5ef18878a0b9e42d8c3e15c9c49ec4b0 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -676,10 +676,7 @@ void ThreadState::scheduleIdleLazySweep()
if (!isMainThread())
return;
- // TODO(haraken): Remove this. Lazy sweeping is not yet enabled in non-oilpan builds.
-#if ENABLE(OILPAN)
Platform::current()->currentThread()->scheduler()->postIdleTask(FROM_HERE, WTF::bind<double>(&ThreadState::performIdleLazySweep, this));
-#endif
}
void ThreadState::schedulePreciseGC()
@@ -904,7 +901,6 @@ void ThreadState::preSweep()
#endif
#endif
-#if ENABLE(OILPAN)
if (gcState() == EagerSweepScheduled) {
// Eager sweeping should happen only in testing.
setGCState(Sweeping);
@@ -914,12 +910,6 @@ void ThreadState::preSweep()
setGCState(Sweeping);
scheduleIdleLazySweep();
}
-#else
- // FIXME: For now, we disable lazy sweeping in non-oilpan builds
- // to avoid unacceptable behavior regressions on trunk.
- setGCState(Sweeping);
- completeSweep();
-#endif
#if ENABLE(GC_PROFILING)
snapshotFreeListIfNecessary();
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698