hotspot/src/cpu/x86/vm/sharedRuntime_x86_32.cpp
changeset 14391 df0a1573d5bd
parent 13883 6979b9850feb
child 14626 0cf4eccf130f
equal deleted inserted replaced
14390:bd0d881cf1c5 14391:df0a1573d5bd
  1934   // Pre-load a static method's oop into rsi.  Used both by locking code and
  1934   // Pre-load a static method's oop into rsi.  Used both by locking code and
  1935   // the normal JNI call code.
  1935   // the normal JNI call code.
  1936   if (method->is_static() && !is_critical_native) {
  1936   if (method->is_static() && !is_critical_native) {
  1937 
  1937 
  1938     //  load opp into a register
  1938     //  load opp into a register
  1939     __ movoop(oop_handle_reg, JNIHandles::make_local(Klass::cast(method->method_holder())->java_mirror()));
  1939     __ movoop(oop_handle_reg, JNIHandles::make_local(method->method_holder()->java_mirror()));
  1940 
  1940 
  1941     // Now handlize the static class mirror it's known not-null.
  1941     // Now handlize the static class mirror it's known not-null.
  1942     __ movptr(Address(rsp, klass_offset), oop_handle_reg);
  1942     __ movptr(Address(rsp, klass_offset), oop_handle_reg);
  1943     map->set_oop(VMRegImpl::stack2reg(klass_slot_offset));
  1943     map->set_oop(VMRegImpl::stack2reg(klass_slot_offset));
  1944 
  1944