Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1629)

Unified Diff: Source/heap/ThreadState.h

Issue 100433005: [oilpan] Rename PauseScope to SafePointScope (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/heap/Heap.cpp ('k') | Source/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/heap/Heap.cpp ('k') | Source/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698