< prev index next >
src/share/vm/prims/jvmtiEnv.cpp
Print this page
rev 9067 : 8139040: Fix initializations before ShouldNotReachHere()
@@ -3062,11 +3062,11 @@
// the VM is setup.
// See transition_pending_raw_monitors in create_vm()
// in thread.cpp.
JvmtiPendingMonitors::enter(rmonitor);
} else {
- int r;
+ int r = 0;
Thread* thread = Thread::current();
if (thread->is_Java_thread()) {
JavaThread* current_thread = (JavaThread*)thread;
@@ -3125,11 +3125,11 @@
// 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;
+ int r = 0;
Thread* thread = Thread::current();
if (thread->is_Java_thread()) {
JavaThread* current_thread = (JavaThread*)thread;
#ifdef PROPER_TRANSITIONS
@@ -3159,11 +3159,11 @@
// rmonitor - pre-checked for validity
jvmtiError
JvmtiEnv::RawMonitorWait(JvmtiRawMonitor * rmonitor, jlong millis) {
- int r;
+ int r = 0;
Thread* thread = Thread::current();
if (thread->is_Java_thread()) {
JavaThread* current_thread = (JavaThread*)thread;
#ifdef PROPER_TRANSITIONS
@@ -3218,11 +3218,11 @@
// rmonitor - pre-checked for validity
jvmtiError
JvmtiEnv::RawMonitorNotify(JvmtiRawMonitor * rmonitor) {
- int r;
+ 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,11 +3249,11 @@
// rmonitor - pre-checked for validity
jvmtiError
JvmtiEnv::RawMonitorNotifyAll(JvmtiRawMonitor * rmonitor) {
- int r;
+ int r = 0;
Thread* thread = Thread::current();
if (thread->is_Java_thread()) {
JavaThread* current_thread = (JavaThread*)thread;
ThreadInVMfromUnknown __tiv;
< prev index next >