Skip to content

Commit e294899

Browse files
author
Sonia Zaldana Calles
committed
8345647: Fix recent NULL usage backsliding in Shenandoah
Reviewed-by: shade, jwaters, mli
1 parent d381d58 commit e294899

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotspot/cpu/ppc/gc/shenandoah/shenandoahBarrierSetAssembler_ppc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ void ShenandoahBarrierSetAssembler::store_at(MacroAssembler *masm, DecoratorSet
624624
tmp1, tmp2, tmp3,
625625
preservation_level);
626626

627-
// No need for post barrier if storing NULL
627+
// No need for post barrier if storing null
628628
if (ShenandoahCardBarrier && is_reference_type(type) && val != noreg) {
629629
store_check(masm, base, ind_or_offs, tmp1);
630630
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ void ShenandoahBarrierSetC2::post_barrier(GraphKit* kit,
458458

459459
// No store check needed if we're storing a null.
460460
if (val != nullptr && val->is_Con()) {
461-
// must be either an oop or NULL
461+
// must be either an oop or null
462462
const Type* t = val->bottom_type();
463463
if (t == TypePtr::NULL_PTR || t == Type::TOP)
464464
return;

0 commit comments

Comments
 (0)