--- a/hotspot/src/cpu/x86/vm/sharedRuntime_x86_64.cpp Thu Oct 04 14:55:57 2012 +0200
+++ b/hotspot/src/cpu/x86/vm/sharedRuntime_x86_64.cpp Tue Nov 06 15:09:37 2012 -0500
@@ -2179,7 +2179,7 @@
if (method->is_static() && !is_critical_native) {
// load oop into a register
- __ movoop(oop_handle_reg, JNIHandles::make_local(Klass::cast(method->method_holder())->java_mirror()));
+ __ movoop(oop_handle_reg, JNIHandles::make_local(method->method_holder()->java_mirror()));
// Now handlize the static class mirror it's known not-null.
__ movptr(Address(rsp, klass_offset), oop_handle_reg);