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

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

Issue 1168503008: Oilpan: Remove PersistentBase (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 | « 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 70a2ca016ea320e778995f7431f196d1e368d668..566a5d870169535154565190a55428a0391e09f5 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -243,7 +243,7 @@ void ThreadState::cleanup()
// Do thread local GC's as long as the count of thread local Persistents
// changes and is above zero.
- PersistentAnchor* anchor = static_cast<PersistentAnchor*>(m_persistents.get());
+ PersistentAnchor* anchor = m_persistents.get();
int oldCount = -1;
int currentCount = anchor->numberOfPersistents();
ASSERT(currentCount >= 0);
@@ -285,7 +285,7 @@ void ThreadState::visitPersistentRoots(Visitor* visitor)
// However we acquire the mutex to make mutation and traversal of this
// list symmetrical.
MutexLocker locker(globalRootsMutex());
- globalRoots().trace(visitor);
+ globalRoots().tracePersistentNodes(visitor);
}
for (ThreadState* state : attachedThreads())
@@ -373,7 +373,7 @@ void ThreadState::visitStack(Visitor* visitor)
void ThreadState::visitPersistents(Visitor* visitor)
{
- m_persistents->trace(visitor);
+ m_persistents->tracePersistentNodes(visitor);
if (m_traceDOMWrappers) {
TRACE_EVENT0("blink_gc", "V8GCController::traceDOMWrappers");
m_traceDOMWrappers(m_isolate, visitor);
@@ -513,9 +513,9 @@ bool ThreadState::popAndInvokeThreadLocalWeakCallback(Visitor* visitor)
return false;
}
-PersistentNode& ThreadState::globalRoots()
+PersistentAnchor& ThreadState::globalRoots()
{
- AtomicallyInitializedStaticReference(PersistentNode, anchor, new PersistentAnchor);
+ AtomicallyInitializedStaticReference(PersistentAnchor, anchor, new PersistentAnchor);
return anchor;
}
« no previous file with comments | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698