Skip to content

Commit

Permalink
8242316: Shenandoah: Turn NULL-check into assert in SATB slow-path entry
Browse files Browse the repository at this point in the history
Reviewed-by: zgu, shade
  • Loading branch information
rkennke committed Apr 8, 2020
1 parent 05c26d8 commit 343f760
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hotspot/share/gc/shenandoah/shenandoahRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ void ShenandoahRuntime::arraycopy_barrier_narrow_oop_entry(narrowOop* src, narro

// Shenandoah pre write barrier slowpath
JRT_LEAF(void, ShenandoahRuntime::write_ref_field_pre_entry(oopDesc* orig, JavaThread *thread))
if (orig == NULL) {
assert(false, "should be optimized out");
return;
}
assert(orig != NULL, "should be optimized out");
shenandoah_assert_correct(NULL, orig);
// store the original value that was in the field reference
assert(ShenandoahThreadLocalData::satb_mark_queue(thread).is_active(), "Shouldn't be here otherwise");
Expand Down

0 comments on commit 343f760

Please sign in to comment.