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

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

Issue 2697703005: Remove ThreadHeap::m_threads (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/platform/heap/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index 2860b2c855581756d1d5312a3f0eee4e27b07b5c..2566ba92b40767cb5d2779d2a543d6d31ac631e1 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -1218,10 +1218,7 @@ void ThreadState::addInterruptor(
std::unique_ptr<BlinkGCInterruptor> interruptor) {
ASSERT(checkThread());
SafePointScope scope(BlinkGC::HeapPointersOnStack);
- {
- MutexLocker locker(m_heap->threadAttachMutex());
- m_interruptors.push_back(std::move(interruptor));
- }
+ m_interruptors.push_back(std::move(interruptor));
}
void ThreadState::registerStaticPersistentNode(
@@ -1268,14 +1265,6 @@ void ThreadState::leaveStaticReferenceRegistrationDisabledScope() {
}
#endif
-void ThreadState::lockThreadAttachMutex() {
- m_heap->threadAttachMutex().lock();
-}
-
-void ThreadState::unlockThreadAttachMutex() {
- m_heap->threadAttachMutex().unlock();
-}
-
void ThreadState::invokePreFinalizers() {
ASSERT(checkThread());
ASSERT(!sweepForbidden());

Powered by Google App Engine
This is Rietveld 408576698