8299324: inline_native_setCurrentThread lacks GC barrier for Shenandoah

Reviewed-by: rkennke, phh
This commit is contained in:
William Kemper 2023-02-06 19:53:20 +00:00 committed by Paul Hohensee
parent d53ade12a8
commit 3ac2beddba

View File

@ -199,7 +199,6 @@ void ShenandoahBarrierSetC2::satb_write_barrier_pre(GraphKit* kit,
if (do_load) {
// We need to generate the load of the previous value
assert(obj != NULL, "must have a base");
assert(adr != NULL, "where are loading from?");
assert(pre_val == NULL, "loaded already?");
assert(val_type != NULL, "need a type");
@ -499,10 +498,7 @@ Node* ShenandoahBarrierSetC2::store_at_resolved(C2Access& access, C2AccessValue&
const TypePtr* adr_type = access.addr().type();
Node* adr = access.addr().node();
bool anonymous = (decorators & ON_UNKNOWN_OOP_REF) != 0;
bool on_heap = (decorators & IN_HEAP) != 0;
if (!access.is_oop() || (!on_heap && !anonymous)) {
if (!access.is_oop()) {
return BarrierSetC2::store_at_resolved(access, val);
}