Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk16u Public archive

Commit b9582bf

Browse files
committed
8260048: Shenandoah: ShenandoahMarkingContext asserts are unnecessary
Backport-of: 5940287b9fa494cf8ddff634a698b0f4891b6f7b
1 parent f081554 commit b9582bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/hotspot/share/gc/shenandoah/shenandoahMarkingContext.inline.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@
2929
#include "gc/shenandoah/shenandoahMarkingContext.hpp"
3030

3131
inline bool ShenandoahMarkingContext::mark_strong(oop obj, bool& was_upgraded) {
32-
shenandoah_assert_not_forwarded(NULL, obj);
33-
return (! allocated_after_mark_start(obj)) && _mark_bit_map.mark_strong(cast_from_oop<HeapWord*>(obj), was_upgraded);
32+
return !allocated_after_mark_start(obj) && _mark_bit_map.mark_strong(cast_from_oop<HeapWord*>(obj), was_upgraded);
3433
}
3534

3635
inline bool ShenandoahMarkingContext::mark_weak(oop obj) {
37-
shenandoah_assert_not_forwarded(NULL, obj);
38-
return (! allocated_after_mark_start(obj)) && _mark_bit_map.mark_weak(cast_from_oop<HeapWord *>(obj));
36+
return !allocated_after_mark_start(obj) && _mark_bit_map.mark_weak(cast_from_oop<HeapWord *>(obj));
3937
}
4038

4139
inline bool ShenandoahMarkingContext::is_marked(oop obj) const {

0 commit comments

Comments
 (0)