8222637: Obsolete NeedsDeoptSuspend

Reviewed-by: dlong, coleenp, dholmes
This commit is contained in:
Robbin Ehn 2019-04-26 10:18:47 +02:00
parent f6382d9b88
commit 1814ecf475
13 changed files with 4 additions and 95 deletions

View file

@ -286,7 +286,6 @@ class Thread: public ThreadShadow {
_external_suspend = 0x20000000U, // thread is asked to self suspend
_ext_suspended = 0x40000000U, // thread has self-suspended
_deopt_suspend = 0x10000000U, // thread needs to self suspend for deopt
_has_async_exception = 0x00000001U, // there is a pending async exception
_critical_native_unlock = 0x00000002U, // Must call back to unlock JNI critical lock
@ -1405,17 +1404,13 @@ class JavaThread: public Thread {
inline void set_external_suspend();
inline void clear_external_suspend();
inline void set_deopt_suspend();
inline void clear_deopt_suspend();
bool is_deopt_suspend() { return (_suspend_flags & _deopt_suspend) != 0; }
bool is_external_suspend() const {
return (_suspend_flags & _external_suspend) != 0;
}
// Whenever a thread transitions from native to vm/java it must suspend
// if external|deopt suspend is present.
bool is_suspend_after_native() const {
return (_suspend_flags & (_external_suspend | _deopt_suspend JFR_ONLY(| _trace_flag))) != 0;
return (_suspend_flags & (_external_suspend JFR_ONLY(| _trace_flag))) != 0;
}
// external suspend request is completed