equal
deleted
inserted
replaced
183 // Thread has called back the safepoint code (for debugging) |
183 // Thread has called back the safepoint code (for debugging) |
184 bool _has_called_back; |
184 bool _has_called_back; |
185 |
185 |
186 JavaThread * _thread; |
186 JavaThread * _thread; |
187 volatile suspend_type _type; |
187 volatile suspend_type _type; |
|
188 JavaThreadState _orig_thread_state; |
188 |
189 |
189 |
190 |
190 public: |
191 public: |
191 ThreadSafepointState(JavaThread *thread); |
192 ThreadSafepointState(JavaThread *thread); |
192 |
193 |
197 |
198 |
198 // Query |
199 // Query |
199 JavaThread* thread() const { return _thread; } |
200 JavaThread* thread() const { return _thread; } |
200 suspend_type type() const { return _type; } |
201 suspend_type type() const { return _type; } |
201 bool is_running() const { return (_type==_running); } |
202 bool is_running() const { return (_type==_running); } |
|
203 JavaThreadState orig_thread_state() const { return _orig_thread_state; } |
202 |
204 |
203 // Support for safepoint timeout (debugging) |
205 // Support for safepoint timeout (debugging) |
204 bool has_called_back() const { return _has_called_back; } |
206 bool has_called_back() const { return _has_called_back; } |
205 void set_has_called_back(bool val) { _has_called_back = val; } |
207 void set_has_called_back(bool val) { _has_called_back = val; } |
206 bool is_at_poll_safepoint() { return _at_poll_safepoint; } |
208 bool is_at_poll_safepoint() { return _at_poll_safepoint; } |