1.1 --- a/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp Tue Dec 03 20:13:16 2019 +0300 1.2 +++ b/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp Mon Nov 27 03:11:38 2017 -0800 1.3 @@ -509,8 +509,13 @@ 1.4 if (o == NULL) { 1.5 __ set(NULL_WORD, reg); 1.6 } else { 1.7 +#ifdef ASSERT 1.8 + { 1.9 + ThreadInVMfromNative tiv(JavaThread::current()); 1.10 + assert(Universe::heap()->is_in_reserved(JNIHandles::resolve(o)), "should be real oop"); 1.11 + } 1.12 +#endif 1.13 int oop_index = __ oop_recorder()->find_index(o); 1.14 - assert(Universe::heap()->is_in_reserved(JNIHandles::resolve(o)), "should be real oop"); 1.15 RelocationHolder rspec = oop_Relocation::spec(oop_index); 1.16 __ set(NULL_WORD, reg, rspec); // Will be set when the nmethod is created 1.17 }