< prev index next >

src/hotspot/share/gc/shared/c1/cardTableBarrierSetC1.cpp

Print this page
@@ -86,11 +86,15 @@
      LIR_Opr cur_value = gen->new_register(T_INT);
      __ move(card_addr, cur_value);
  
      LabelObj* L_already_dirty = new LabelObj();
      __ cmp(lir_cond_equal, cur_value, dirty);
-     __ branch(lir_cond_equal, L_already_dirty->label());
+     __ branch(lir_cond_equal,
+ #ifdef RISCV
+               cur_value, dirty,
+ #endif
+               L_already_dirty->label());
      __ move(dirty, card_addr);
      __ branch_destination(L_already_dirty->label());
    } else {
      __ move(dirty, card_addr);
    }
< prev index next >