equal
deleted
inserted
replaced
988 AddressLiteral MacroAssembler::constant_oop_address(jobject obj) { |
988 AddressLiteral MacroAssembler::constant_oop_address(jobject obj) { |
989 #ifdef ASSERT |
989 #ifdef ASSERT |
990 { |
990 { |
991 ThreadInVMfromUnknown tiv; |
991 ThreadInVMfromUnknown tiv; |
992 assert(oop_recorder() != NULL, "this assembler needs an OopRecorder"); |
992 assert(oop_recorder() != NULL, "this assembler needs an OopRecorder"); |
993 assert(Universe::heap()->is_in_reserved(JNIHandles::resolve(obj)), "not an oop"); |
993 assert(Universe::heap()->is_in(JNIHandles::resolve(obj)), "not an oop"); |
994 } |
994 } |
995 #endif |
995 #endif |
996 int oop_index = oop_recorder()->find_index(obj); |
996 int oop_index = oop_recorder()->find_index(obj); |
997 return AddressLiteral(obj, oop_Relocation::spec(oop_index)); |
997 return AddressLiteral(obj, oop_Relocation::spec(oop_index)); |
998 } |
998 } |