Index: Source/heap/ThreadState.h |
diff --git a/Source/heap/ThreadState.h b/Source/heap/ThreadState.h |
index 646102339f2a5f26127db32bdf7f63f547530ba5..d0388b4c5ebba90e80f70d1755e0079cee716d81 100644 |
--- a/Source/heap/ThreadState.h |
+++ b/Source/heap/ThreadState.h |
@@ -184,9 +184,9 @@ public: |
void executePendingAction(); |
- void paused(StackState); |
- void resumed(); |
- bool isPaused() const { return m_isPaused; } |
+ void enterSafePoint(StackState); |
+ void leaveSafePoint(); |
+ bool isInSafePoint() const { return m_inSafePoint; } |
bool shouldGC(); |
bool shouldForceConservativeGC(); |
@@ -234,10 +234,10 @@ public: |
void safePoint(); |
- class PauseScope { |
+ class SafePointScope { |
public: |
- PauseScope(StackState stackState) { ThreadState::Current()->paused(stackState); } |
- ~PauseScope() { ThreadState::Current()->resumed(); } |
+ SafePointScope(StackState stackState) { ThreadState::Current()->enterSafePoint(stackState); } |
+ ~SafePointScope() { ThreadState::Current()->leaveSafePoint(); } |
}; |
void visitStack(Visitor*); |
@@ -286,7 +286,7 @@ private: |
bool pointersOnStack() const { return m_stackState == HeapPointersOnStack; } |
ThreadIdentifier m_thread; |
- bool m_isPaused; |
+ bool m_inSafePoint; |
int m_inGC; |
PersistentNode* m_persistents; |
StackState m_stackState; |