1.1 --- a/src/share/vm/compiler/compileBroker.cpp Fri Dec 07 10:55:16 2012 -0800 1.2 +++ b/src/share/vm/compiler/compileBroker.cpp Wed Dec 12 11:39:29 2012 -0500 1.3 @@ -269,12 +269,10 @@ 1.4 const char* comment, 1.5 bool is_blocking) { 1.6 assert(!_lock->is_locked(), "bad locking"); 1.7 - InstanceKlass* holder = method->method_holder(); 1.8 1.9 _compile_id = compile_id; 1.10 _method = method(); 1.11 - _method_holder = JNIHandles::make_global( 1.12 - holder->is_anonymous() ? holder->java_mirror(): holder->class_loader()); 1.13 + _method_holder = JNIHandles::make_global(method->method_holder()->klass_holder()); 1.14 _osr_bci = osr_bci; 1.15 _is_blocking = is_blocking; 1.16 _comp_level = comp_level; 1.17 @@ -298,10 +296,7 @@ 1.18 } else { 1.19 _hot_method = hot_method(); 1.20 // only add loader or mirror if different from _method_holder 1.21 - InstanceKlass* hot_holder = hot_method->method_holder(); 1.22 - _hot_method_holder = JNIHandles::make_global( 1.23 - hot_holder->is_anonymous() ? hot_holder->java_mirror() : 1.24 - hot_holder->class_loader()); 1.25 + _hot_method_holder = JNIHandles::make_global(hot_method->method_holder()->klass_holder()); 1.26 } 1.27 } 1.28 }