Mercurial > hg > graal-compiler
diff src/share/vm/runtime/thread.cpp @ 6769:c088e2e95e69
Merge
author | zgu |
---|---|
date | Mon, 17 Sep 2012 13:34:07 -0700 |
parents | 716e6ef4482a a7509aff1b06 |
children | c3e799c37717 fb19af007ffc |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp Mon Sep 17 10:20:04 2012 -0400 +++ b/src/share/vm/runtime/thread.cpp Mon Sep 17 13:34:07 2012 -0700 @@ -842,7 +842,11 @@ void Thread::print_on(outputStream* st) const { // get_priority assumes osthread initialized if (osthread() != NULL) { - st->print("prio=%d tid=" INTPTR_FORMAT " ", get_priority(this), this); + int os_prio; + if (os::get_native_priority(this, &os_prio) == OS_OK) { + st->print("os_prio=%d ", os_prio); + } + st->print("tid=" INTPTR_FORMAT " ", this); osthread()->print_on(st); } debug_only(if (WizardMode) print_owned_locks_on(st);) @@ -2749,7 +2753,11 @@ void JavaThread::print_on(outputStream *st) const { st->print("\"%s\" ", get_thread_name()); oop thread_oop = threadObj(); - if (thread_oop != NULL && java_lang_Thread::is_daemon(thread_oop)) st->print("daemon "); + if (thread_oop != NULL) { + st->print("#" INT64_FORMAT " ", java_lang_Thread::thread_id(thread_oop)); + if (java_lang_Thread::is_daemon(thread_oop)) st->print("daemon "); + st->print("prio=%d ", java_lang_Thread::priority(thread_oop)); + } Thread::print_on(st); // print guess for valid stack memory region (assume 4K pages); helps lock debugging st->print_cr("[" INTPTR_FORMAT "]", (intptr_t)last_Java_sp() & ~right_n_bits(12)); @@ -4276,8 +4284,10 @@ st->cr(); Universe::heap()->print_gc_threads_on(st); WatcherThread* wt = WatcherThread::watcher_thread(); - if (wt != NULL) wt->print_on(st); - st->cr(); + if (wt != NULL) { + wt->print_on(st); + st->cr(); + } CompileBroker::print_compiler_threads_on(st); st->flush(); }