src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp

changeset 9852
70aa912cebe5
parent 9637
eef07cd490d4
parent 9841
2e636385f137
     1.1 --- a/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp	Wed Apr 15 11:14:58 2020 +0800
     1.2 +++ b/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp	Wed Apr 15 11:49:55 2020 +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    }

mercurial