| 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 5dade81422fb90875c853471da1f73fa91d9e779..59e3c71d0df5cca419e5cb1332dd16000e246cb6 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| @@ -1317,6 +1317,23 @@ void ThreadState::removeInterruptor(BlinkGCInterruptor* interruptor)
|
| }
|
| }
|
|
|
| +#if defined(LEAK_SANITIZER)
|
| +void ThreadState::registerStaticPersistentNode(PersistentNode* node)
|
| +{
|
| + ASSERT(!m_staticPersistents.contains(node));
|
| + m_staticPersistents.add(node);
|
| +}
|
| +
|
| +void ThreadState::releaseStaticPersistentNodes()
|
| +{
|
| + for (PersistentNode* node : m_staticPersistents)
|
| + persistentRegion()->freePersistentNode(node);
|
| +
|
| + m_staticPersistents.clear();
|
| +}
|
| +
|
| +#endif
|
| +
|
| ThreadState::AttachedThreadStateSet& ThreadState::attachedThreads()
|
| {
|
| DEFINE_STATIC_LOCAL(AttachedThreadStateSet, threads, ());
|
|
|