Skip to content
Permalink
Browse files

8238574: Shenandoah: Assertion failure due to missing null check

Reviewed-by: shade
  • Loading branch information
zhengyu123 committed Feb 6, 2020
1 parent b3f01bb commit 87031d4728158aefbd54c4d3c754a91e19b8ae54
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp
@@ -120,7 +120,9 @@ inline oop ShenandoahBarrierSet::AccessBarrier<decorators, BarrierSetT>::oop_loa
if (value != NULL) {
ShenandoahBarrierSet *const bs = ShenandoahBarrierSet::barrier_set();
value = bs->load_reference_barrier_native(value, addr);
bs->keep_alive_if_weak<decorators>(value);
if (value != NULL) {
bs->keep_alive_if_weak<decorators>(value);
}
}
return value;
}

0 comments on commit 87031d4

Please sign in to comment.