comparison src/share/vm/prims/jvmtiEnv.cpp @ 9596:825cee2cd7a6

8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux. Reviewed-by: stuefe, coleenp, roland
author goetz
date Thu, 22 Oct 2015 13:07:10 -0400
parents a37aac88925c
children 4535697211eb
comparison
equal deleted inserted replaced
38:662e350961bd 39:915f131665df
3062 // the VM is setup. 3062 // the VM is setup.
3063 // See transition_pending_raw_monitors in create_vm() 3063 // See transition_pending_raw_monitors in create_vm()
3064 // in thread.cpp. 3064 // in thread.cpp.
3065 JvmtiPendingMonitors::enter(rmonitor); 3065 JvmtiPendingMonitors::enter(rmonitor);
3066 } else { 3066 } else {
3067 int r; 3067 int r = 0;
3068 Thread* thread = Thread::current(); 3068 Thread* thread = Thread::current();
3069 3069
3070 if (thread->is_Java_thread()) { 3070 if (thread->is_Java_thread()) {
3071 JavaThread* current_thread = (JavaThread*)thread; 3071 JavaThread* current_thread = (JavaThread*)thread;
3072 3072
3125 // Bool value from exit is false if rmonitor is not in the list. 3125 // Bool value from exit is false if rmonitor is not in the list.
3126 if (!JvmtiPendingMonitors::exit(rmonitor)) { 3126 if (!JvmtiPendingMonitors::exit(rmonitor)) {
3127 err = JVMTI_ERROR_NOT_MONITOR_OWNER; 3127 err = JVMTI_ERROR_NOT_MONITOR_OWNER;
3128 } 3128 }
3129 } else { 3129 } else {
3130 int r; 3130 int r = 0;
3131 Thread* thread = Thread::current(); 3131 Thread* thread = Thread::current();
3132 3132
3133 if (thread->is_Java_thread()) { 3133 if (thread->is_Java_thread()) {
3134 JavaThread* current_thread = (JavaThread*)thread; 3134 JavaThread* current_thread = (JavaThread*)thread;
3135 #ifdef PROPER_TRANSITIONS 3135 #ifdef PROPER_TRANSITIONS
3159 3159
3160 3160
3161 // rmonitor - pre-checked for validity 3161 // rmonitor - pre-checked for validity
3162 jvmtiError 3162 jvmtiError
3163 JvmtiEnv::RawMonitorWait(JvmtiRawMonitor * rmonitor, jlong millis) { 3163 JvmtiEnv::RawMonitorWait(JvmtiRawMonitor * rmonitor, jlong millis) {
3164 int r; 3164 int r = 0;
3165 Thread* thread = Thread::current(); 3165 Thread* thread = Thread::current();
3166 3166
3167 if (thread->is_Java_thread()) { 3167 if (thread->is_Java_thread()) {
3168 JavaThread* current_thread = (JavaThread*)thread; 3168 JavaThread* current_thread = (JavaThread*)thread;
3169 #ifdef PROPER_TRANSITIONS 3169 #ifdef PROPER_TRANSITIONS
3218 3218
3219 3219
3220 // rmonitor - pre-checked for validity 3220 // rmonitor - pre-checked for validity
3221 jvmtiError 3221 jvmtiError
3222 JvmtiEnv::RawMonitorNotify(JvmtiRawMonitor * rmonitor) { 3222 JvmtiEnv::RawMonitorNotify(JvmtiRawMonitor * rmonitor) {
3223 int r; 3223 int r = 0;
3224 Thread* thread = Thread::current(); 3224 Thread* thread = Thread::current();
3225 3225
3226 if (thread->is_Java_thread()) { 3226 if (thread->is_Java_thread()) {
3227 JavaThread* current_thread = (JavaThread*)thread; 3227 JavaThread* current_thread = (JavaThread*)thread;
3228 // Not really unknown but ThreadInVMfromNative does more than we want 3228 // Not really unknown but ThreadInVMfromNative does more than we want
3249 3249
3250 3250
3251 // rmonitor - pre-checked for validity 3251 // rmonitor - pre-checked for validity
3252 jvmtiError 3252 jvmtiError
3253 JvmtiEnv::RawMonitorNotifyAll(JvmtiRawMonitor * rmonitor) { 3253 JvmtiEnv::RawMonitorNotifyAll(JvmtiRawMonitor * rmonitor) {
3254 int r; 3254 int r = 0;
3255 Thread* thread = Thread::current(); 3255 Thread* thread = Thread::current();
3256 3256
3257 if (thread->is_Java_thread()) { 3257 if (thread->is_Java_thread()) {
3258 JavaThread* current_thread = (JavaThread*)thread; 3258 JavaThread* current_thread = (JavaThread*)thread;
3259 ThreadInVMfromUnknown __tiv; 3259 ThreadInVMfromUnknown __tiv;