< prev index next > src/hotspot/cpu/ppc/gc/shenandoah/c1/shenandoahBarrierSetC1_ppc.cpp
Print this page
LIR_Opr addr = access.resolved_addr()->as_address_ptr()->base();
LIR_Opr result = gen->new_register(T_INT);
__ append(new LIR_OpShenandoahCompareAndSwap(addr, cmp_value.result(), new_value.result(), t1, t2, result));
+ if (ShenandoahCardBarrier) {
+ post_barrier(access, access.resolved_addr(), new_value.result());
+ }
+
return result;
}
}
return BarrierSetC1::atomic_cmpxchg_at_resolved(access, cmp_value, new_value);
result = tmp_barrier;
if (ShenandoahSATBBarrier) {
pre_barrier(access.gen(), access.access_emit_info(), access.decorators(), LIR_OprFact::illegalOpr, result);
}
+
+ if (ShenandoahCardBarrier) {
+ post_barrier(access, access.resolved_addr(), result);
+ }
}
return result;
}
< prev index next >