Mercurial > hg > graal-compiler
comparison src/share/vm/ci/ciMethod.cpp @ 3657:47edfca346ab
Fix a safepoint bug in code installer.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 17 Nov 2011 16:40:14 +0100 |
parents | 81d815b05abb |
children | 04b9a2566eec |
comparison
equal
deleted
inserted
replaced
3655:2a0cb564e470 | 3657:47edfca346ab |
---|---|
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 MutexLocker locker(Compile_lock); | 100 // TODO(tw): Check if we need that. |
101 if (Dependencies::check_evol_method(h_m()) != NULL) { | 101 //MutexLocker locker(Compile_lock); |
102 _is_c1_compilable = false; | 102 //if (Dependencies::check_evol_method(h_m()) != NULL) { |
103 _is_c2_compilable = false; | 103 // _is_c1_compilable = false; |
104 } | 104 // _is_c2_compilable = false; |
105 //} | |
105 } else { | 106 } else { |
106 CHECK_UNHANDLED_OOPS_ONLY(Thread::current()->clear_unhandled_oops()); | 107 CHECK_UNHANDLED_OOPS_ONLY(Thread::current()->clear_unhandled_oops()); |
107 } | 108 } |
108 | 109 |
109 if (instanceKlass::cast(h_m()->method_holder())->is_linked()) { | 110 if (instanceKlass::cast(h_m()->method_holder())->is_linked()) { |