mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8183545: Event tracing, transition hooks
Reviewed-by: dcubed, egahlin
This commit is contained in:
parent
34ff291920
commit
41e729b386
5 changed files with 32 additions and 8 deletions
|
@ -1334,7 +1334,9 @@ void java_lang_Thread::set_thread_status(oop java_thread,
|
|||
|
||||
// Read thread status value from threadStatus field in java.lang.Thread java class.
|
||||
java_lang_Thread::ThreadStatus java_lang_Thread::get_thread_status(oop java_thread) {
|
||||
assert(Thread::current()->is_Watcher_thread() || Thread::current()->is_VM_thread() ||
|
||||
// Make sure the caller is operating on behalf of the VM or is
|
||||
// running VM code (state == _thread_in_vm).
|
||||
assert(Threads_lock->owned_by_self() || Thread::current()->is_VM_thread() ||
|
||||
JavaThread::current()->thread_state() == _thread_in_vm,
|
||||
"Java Thread is not running in vm");
|
||||
// The threadStatus is only present starting in 1.5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue