src/hotspot/cpu/sparc/c1_LIRAssembler_sparc.cpp
changeset 48120 bb957f109a1f
parent 47881 0ce0ac68ace7
child 48807 fd8ccb37fce9
equal deleted inserted replaced
48119:c1b46afab3ba 48120:bb957f109a1f
   396 
   396 
   397 void LIR_Assembler::jobject2reg(jobject o, Register reg) {
   397 void LIR_Assembler::jobject2reg(jobject o, Register reg) {
   398   if (o == NULL) {
   398   if (o == NULL) {
   399     __ set(NULL_WORD, reg);
   399     __ set(NULL_WORD, reg);
   400   } else {
   400   } else {
       
   401 #ifdef ASSERT
       
   402     {
       
   403       ThreadInVMfromNative tiv(JavaThread::current());
       
   404       assert(Universe::heap()->is_in_reserved(JNIHandles::resolve(o)), "should be real oop");
       
   405     }
       
   406 #endif
   401     int oop_index = __ oop_recorder()->find_index(o);
   407     int oop_index = __ oop_recorder()->find_index(o);
   402     assert(Universe::heap()->is_in_reserved(JNIHandles::resolve(o)), "should be real oop");
       
   403     RelocationHolder rspec = oop_Relocation::spec(oop_index);
   408     RelocationHolder rspec = oop_Relocation::spec(oop_index);
   404     __ set(NULL_WORD, reg, rspec); // Will be set when the nmethod is created
   409     __ set(NULL_WORD, reg, rspec); // Will be set when the nmethod is created
   405   }
   410   }
   406 }
   411 }
   407 
   412