< prev index next >

src/share/vm/prims/jvmtiEnv.cpp

Print this page
rev 9067 : 8139040: Fix initializations before ShouldNotReachHere()

*** 3062,3072 **** // the VM is setup. // See transition_pending_raw_monitors in create_vm() // in thread.cpp. JvmtiPendingMonitors::enter(rmonitor); } else { ! int r; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; --- 3062,3072 ---- // the VM is setup. // See transition_pending_raw_monitors in create_vm() // in thread.cpp. JvmtiPendingMonitors::enter(rmonitor); } else { ! int r = 0; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread;
*** 3125,3135 **** // Bool value from exit is false if rmonitor is not in the list. if (!JvmtiPendingMonitors::exit(rmonitor)) { err = JVMTI_ERROR_NOT_MONITOR_OWNER; } } else { ! int r; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; #ifdef PROPER_TRANSITIONS --- 3125,3135 ---- // Bool value from exit is false if rmonitor is not in the list. if (!JvmtiPendingMonitors::exit(rmonitor)) { err = JVMTI_ERROR_NOT_MONITOR_OWNER; } } else { ! int r = 0; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; #ifdef PROPER_TRANSITIONS
*** 3159,3169 **** // rmonitor - pre-checked for validity jvmtiError JvmtiEnv::RawMonitorWait(JvmtiRawMonitor * rmonitor, jlong millis) { ! int r; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; #ifdef PROPER_TRANSITIONS --- 3159,3169 ---- // rmonitor - pre-checked for validity jvmtiError JvmtiEnv::RawMonitorWait(JvmtiRawMonitor * rmonitor, jlong millis) { ! int r = 0; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; #ifdef PROPER_TRANSITIONS
*** 3218,3228 **** // rmonitor - pre-checked for validity jvmtiError JvmtiEnv::RawMonitorNotify(JvmtiRawMonitor * rmonitor) { ! int r; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; // Not really unknown but ThreadInVMfromNative does more than we want --- 3218,3228 ---- // rmonitor - pre-checked for validity jvmtiError JvmtiEnv::RawMonitorNotify(JvmtiRawMonitor * rmonitor) { ! int r = 0; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; // Not really unknown but ThreadInVMfromNative does more than we want
*** 3249,3259 **** // rmonitor - pre-checked for validity jvmtiError JvmtiEnv::RawMonitorNotifyAll(JvmtiRawMonitor * rmonitor) { ! int r; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; ThreadInVMfromUnknown __tiv; --- 3249,3259 ---- // rmonitor - pre-checked for validity jvmtiError JvmtiEnv::RawMonitorNotifyAll(JvmtiRawMonitor * rmonitor) { ! int r = 0; Thread* thread = Thread::current(); if (thread->is_Java_thread()) { JavaThread* current_thread = (JavaThread*)thread; ThreadInVMfromUnknown __tiv;
< prev index next >