| Index: third_party/WebKit/Source/platform/heap/ThreadState.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| index 5efb062e0440de514e82a783ef6717ecc6df3377..1864d0082a5f79a532ff892de637e225aa2289f1 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| @@ -173,6 +173,8 @@ public:
|
| void lockThreadAttachMutex();
|
| void unlockThreadAttachMutex();
|
|
|
| + bool perThreadHeapEnabled() const { return m_perThreadHeapEnabled; }
|
| +
|
| bool isTerminating() { return m_isTerminating; }
|
|
|
| static void attachMainThread();
|
| @@ -182,7 +184,7 @@ public:
|
| // Associate ThreadState object with the current thread. After this
|
| // call thread can start using the garbage collected heap infrastructure.
|
| // It also has to periodically check for safepoints.
|
| - static void attachCurrentThread();
|
| + static void attachCurrentThread(bool perThreadHeapEnabled);
|
|
|
| // Disassociate attached ThreadState from the current thread. The thread
|
| // can no longer use the garbage collected heap after this call.
|
| @@ -526,7 +528,7 @@ private:
|
| FreelistSnapshot
|
| };
|
|
|
| - ThreadState();
|
| + ThreadState(bool perThreadHeapEnabled);
|
| ~ThreadState();
|
|
|
| NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope();
|
| @@ -636,6 +638,7 @@ private:
|
| size_t m_arenaAges[BlinkGC::NumberOfArenas];
|
| size_t m_currentArenaAges;
|
|
|
| + bool m_perThreadHeapEnabled;
|
| bool m_isTerminating;
|
| GarbageCollectedMixinConstructorMarker* m_gcMixinMarker;
|
|
|
|
|