Skip to content

Commit d35b117

Browse files
committed
8253361: Shenandoah: runtime barrier does not honor ShenandoahSelfFixing flag
Reviewed-by: rkennke
1 parent f37c34d commit d35b117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ oop ShenandoahBarrierSet::load_reference_barrier_native_impl(oop obj, T* load_ad
204204
}
205205

206206
oop fwd = load_reference_barrier_not_null(obj);
207-
if (load_addr != NULL && fwd != obj) {
207+
if (ShenandoahSelfFixing && load_addr != NULL && fwd != obj) {
208208
// Since we are here and we know the load address, update the reference.
209209
ShenandoahHeap::cas_oop(fwd, load_addr, obj);
210210
}

0 commit comments

Comments
 (0)