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

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

Issue 850063002: Do not fire timers for finalizing objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: export Heap::hasBeenLazilySwept() Created 5 years, 11 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
« Source/platform/heap/Heap.cpp ('K') | « Source/platform/heap/ThreadState.h ('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 0e96faec732ecedf2c6edf93aaea0b3e098e7384..fa57e7ebba437ed9c6461fa7da2d34924fda81cc 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -314,6 +314,7 @@ ThreadState::ThreadState()
, m_sweepForbidden(false)
, m_noAllocationCount(0)
, m_isTerminating(false)
+ , m_lazySweepToggle(false)
, m_shouldFlushHeapDoesNotContainCache(false)
, m_collectionRate(1.0)
, m_gcState(NoGCScheduled)
@@ -907,6 +908,7 @@ void ThreadState::preGC()
makeConsistentForSweeping();
prepareRegionTree();
flushHeapDoesNotContainCacheIfNeeded();
+ m_lazySweepToggle = !m_lazySweepToggle;
if (isMainThread())
m_allocatedObjectSizeBeforeGC = Heap::allocatedObjectSize() + Heap::markedObjectSize();
}
« Source/platform/heap/Heap.cpp ('K') | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698