< prev index next >
src/share/vm/runtime/thread.hpp
Print this page
rev 9031 : 8223689: Add JFR Thread Sampling Support
*** 194,204 ****
_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
};
// various suspension related flags - atomically updated
// overloaded for async exception checking in check_special_condition_for_native_trans.
volatile uint32_t _suspend_flags;
--- 194,206 ----
_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
!
! JFR_ONLY(_trace_flag = 0x00000004U) // call jfr tracing
};
// various suspension related flags - atomically updated
// overloaded for async exception checking in check_special_condition_for_native_trans.
volatile uint32_t _suspend_flags;
*** 441,450 ****
--- 443,453 ----
void set_allocated_bytes(jlong value) { _allocated_bytes = value; }
void incr_allocated_bytes(jlong size) { _allocated_bytes += size; }
inline jlong cooked_allocated_bytes();
JFR_ONLY(DEFINE_THREAD_LOCAL_ACCESSOR_JFR;)
+ JFR_ONLY(DEFINE_TRACE_SUSPEND_FLAG_METHODS)
const ThreadExt& ext() const { return _ext; }
ThreadExt& ext() { return _ext; }
// VM operation support
< prev index next >