< prev index next >

src/share/vm/services/threadService.hpp

Print this page
rev 9081 : imported patch more.patch

*** 428,438 **** java_lang_Thread::ThreadStatus state) { save_old_state(java_thread); set_thread_status(state); } ! JavaThreadStatusChanger(JavaThread* java_thread) { save_old_state(java_thread); } ~JavaThreadStatusChanger() { set_thread_status(_old_state); --- 428,438 ---- java_lang_Thread::ThreadStatus state) { save_old_state(java_thread); set_thread_status(state); } ! JavaThreadStatusChanger(JavaThread* java_thread) : _old_state(java_lang_Thread::NEW) { save_old_state(java_thread); } ~JavaThreadStatusChanger() { set_thread_status(_old_state);
*** 540,550 **** } set_thread_status(java_thread, java_lang_Thread::RUNNABLE); } JavaThreadBlockedOnMonitorEnterState(JavaThread *java_thread, ObjectMonitor *obj_m) : ! JavaThreadStatusChanger(java_thread) { assert((java_thread != NULL), "Java thread should not be null here"); // Change thread status and collect contended enter stats for monitor contended // enter done for external java world objects and it is contended. All other cases // like for vm internal objects and for external objects which are not contended // thread status is not changed and contended enter stat is not collected. --- 540,550 ---- } set_thread_status(java_thread, java_lang_Thread::RUNNABLE); } JavaThreadBlockedOnMonitorEnterState(JavaThread *java_thread, ObjectMonitor *obj_m) : ! _stat(NULL), _active(false), JavaThreadStatusChanger(java_thread) { assert((java_thread != NULL), "Java thread should not be null here"); // Change thread status and collect contended enter stats for monitor contended // enter done for external java world objects and it is contended. All other cases // like for vm internal objects and for external objects which are not contended // thread status is not changed and contended enter stat is not collected.
< prev index next >