| Index: third_party/WebKit/Source/platform/heap/Heap.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
|
| index bf086aa367139e968bb66a85da19f122ecec1b8d..428fc9263debac7cf8ad6f95415e8f117409bb33 100644
|
| --- a/third_party/WebKit/Source/platform/heap/Heap.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
|
| @@ -156,24 +156,9 @@ ThreadHeap::ThreadHeap()
|
| m_ephemeronStack(CallbackStack::create()) {
|
| if (ThreadState::current()->isMainThread())
|
| s_mainThreadHeap = this;
|
| -
|
| - MutexLocker locker(ThreadHeap::allHeapsMutex());
|
| - allHeaps().insert(this);
|
| }
|
|
|
| ThreadHeap::~ThreadHeap() {
|
| - MutexLocker locker(ThreadHeap::allHeapsMutex());
|
| - allHeaps().remove(this);
|
| -}
|
| -
|
| -RecursiveMutex& ThreadHeap::allHeapsMutex() {
|
| - DEFINE_THREAD_SAFE_STATIC_LOCAL(RecursiveMutex, mutex, (new RecursiveMutex));
|
| - return mutex;
|
| -}
|
| -
|
| -HashSet<ThreadHeap*>& ThreadHeap::allHeaps() {
|
| - DEFINE_STATIC_LOCAL(HashSet<ThreadHeap*>, heaps, ());
|
| - return heaps;
|
| }
|
|
|
| void ThreadHeap::attach(ThreadState* thread) {
|
|
|