< prev index next >

src/hotspot/share/gc/z/c1/zBarrierSetC1.cpp

Print this page
*** 147,10 ***
--- 147,13 ---
    __ append(new LIR_OpZLoadBarrierTest(result));
  
    // Slow path
    const address runtime_stub = load_barrier_on_oop_field_preloaded_runtime_stub(access.decorators());
    CodeStub* const stub = new ZLoadBarrierStubC1(access, result, runtime_stub);
+ #ifdef RISCV
+   __ cmp(lir_cond_notEqual, FrameMap::t1_long_opr, LIR_OprFact::longConst(0));
+ #endif
    __ branch(lir_cond_notEqual, stub);
    __ branch_destination(stub->continuation());
  }
  
  LIR_Opr ZBarrierSetC1::resolve_address(LIRAccess& access, bool resolve_in_register) {
< prev index next >