comparison src/share/vm/ci/ciMethod.cpp @ 4583:597bc897257d

Made DebugInformationRecorder::describe_scope() take both a methodHandle _and_ a ciMethod* parameter to avoid creating handles in scopes where it is not allowed.
author Doug Simon <doug.simon@oracle.com>
date Mon, 13 Feb 2012 23:15:53 +0100
parents 04b9a2566eec
children 957c266d8bc5
comparison
equal deleted inserted replaced
4582:b24386206122 4583:597bc897257d
95 #endif // COMPILER2 || SHARK 95 #endif // COMPILER2 || SHARK
96 96
97 ciEnv *env = CURRENT_ENV; 97 ciEnv *env = CURRENT_ENV;
98 if (env->jvmti_can_hotswap_or_post_breakpoint() && can_be_compiled()) { 98 if (env->jvmti_can_hotswap_or_post_breakpoint() && can_be_compiled()) {
99 // 6328518 check hotswap conditions under the right lock. 99 // 6328518 check hotswap conditions under the right lock.
100 // TODO(tw): Check if we need that. 100 MutexLocker locker(Compile_lock);
101 //MutexLocker locker(Compile_lock); 101 if (Dependencies::check_evol_method(h_m()) != NULL) {
102 //if (Dependencies::check_evol_method(h_m()) != NULL) { 102 _is_c1_compilable = false;
103 // _is_c1_compilable = false; 103 _is_c2_compilable = false;
104 // _is_c2_compilable = false; 104 }
105 //}
106 } else { 105 } else {
107 CHECK_UNHANDLED_OOPS_ONLY(Thread::current()->clear_unhandled_oops()); 106 CHECK_UNHANDLED_OOPS_ONLY(Thread::current()->clear_unhandled_oops());
108 } 107 }
109 108
110 if (instanceKlass::cast(h_m()->method_holder())->is_linked()) { 109 if (instanceKlass::cast(h_m()->method_holder())->is_linked()) {