Skip to content

Commit 3ac2bed

Browse files
William KemperPaul Hohensee
authored andcommitted
8299324: inline_native_setCurrentThread lacks GC barrier for Shenandoah
Reviewed-by: rkennke, phh
1 parent d53ade1 commit 3ac2bed

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ void ShenandoahBarrierSetC2::satb_write_barrier_pre(GraphKit* kit,
199199

200200
if (do_load) {
201201
// We need to generate the load of the previous value
202-
assert(obj != NULL, "must have a base");
203202
assert(adr != NULL, "where are loading from?");
204203
assert(pre_val == NULL, "loaded already?");
205204
assert(val_type != NULL, "need a type");
@@ -499,10 +498,7 @@ Node* ShenandoahBarrierSetC2::store_at_resolved(C2Access& access, C2AccessValue&
499498
const TypePtr* adr_type = access.addr().type();
500499
Node* adr = access.addr().node();
501500

502-
bool anonymous = (decorators & ON_UNKNOWN_OOP_REF) != 0;
503-
bool on_heap = (decorators & IN_HEAP) != 0;
504-
505-
if (!access.is_oop() || (!on_heap && !anonymous)) {
501+
if (!access.is_oop()) {
506502
return BarrierSetC2::store_at_resolved(access, val);
507503
}
508504

0 commit comments

Comments
 (0)