< prev index next >

src/hotspot/cpu/x86/c2_CodeStubs_x86.cpp

Print this page
*** 91,8 ***
--- 91,20 ---
    __ movl(t, Address(r15_thread, JavaThread::lock_stack_top_offset()));
    __ movptr(Address(r15_thread, t), 0);
  #endif
    __ jmp(continuation());
  }
+ 
+ int C2LoadNKlassStub::max_size() const {
+   return 10;
+ }
+ 
+ void C2LoadNKlassStub::emit(C2_MacroAssembler& masm) {
+   __ bind(entry());
+   Register d = dst();
+   __ movq(d, Address(d, OM_OFFSET_NO_MONITOR_VALUE_TAG(header)));
+   __ jmp(continuation());
+ }
+ 
  #endif
  
  #undef __
< prev index next >