Chromium Code Reviews| Index: Source/heap/ThreadState.h |
| diff --git a/Source/heap/ThreadState.h b/Source/heap/ThreadState.h |
| index 81cec848ae92d8be1fbd0ae8c64ac2d60c5f5f64..e5323d18b5bdc9d9c1ee91131dc99d12c0583642 100644 |
| --- a/Source/heap/ThreadState.h |
| +++ b/Source/heap/ThreadState.h |
| @@ -238,15 +238,6 @@ public: |
| // It also has to periodically check for safepoints. |
| static void attach(); |
| - // When ThreadState is detaching from non-main thread its |
|
Mads Ager (chromium)
2014/03/05 07:40:34
Please keep this comment.
|
| - // heap is expected to be empty (because it is going away). |
| - // Perform registered cleanup tasks and garbage collection |
| - // to sweep away any objects that are left on this heap. |
| - // We assert that nothing must remain after this cleanup. |
| - // If assertion does not hold we crash as we are potentially |
| - // in the dangling pointer situation. |
| - void cleanup(); |
| - |
| // Disassociate attached ThreadState from the current thread. The thread |
| // can no longer use the garbage collected heap after this call. |
| static void detach(); |
| @@ -501,6 +492,8 @@ private: |
| m_safePointScopeMarker = 0; |
| } |
| + void cleanup(); |
| + |
| static WTF::ThreadSpecific<ThreadState*>* s_threadSpecific; |
| static SafePointBarrier* s_safePointBarrier; |