8260048: Shenandoah: ShenandoahMarkingContext asserts are unnecessary
Reviewed-by: zgu, rkennke
This commit is contained in:
parent
f8a9602a0a
commit
5940287b9f
@ -29,13 +29,11 @@
|
|||||||
#include "gc/shenandoah/shenandoahMarkingContext.hpp"
|
#include "gc/shenandoah/shenandoahMarkingContext.hpp"
|
||||||
|
|
||||||
inline bool ShenandoahMarkingContext::mark_strong(oop obj, bool& was_upgraded) {
|
inline bool ShenandoahMarkingContext::mark_strong(oop obj, bool& was_upgraded) {
|
||||||
shenandoah_assert_not_forwarded(NULL, obj);
|
return !allocated_after_mark_start(obj) && _mark_bit_map.mark_strong(cast_from_oop<HeapWord*>(obj), was_upgraded);
|
||||||
return (! allocated_after_mark_start(obj)) && _mark_bit_map.mark_strong(cast_from_oop<HeapWord*>(obj), was_upgraded);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool ShenandoahMarkingContext::mark_weak(oop obj) {
|
inline bool ShenandoahMarkingContext::mark_weak(oop obj) {
|
||||||
shenandoah_assert_not_forwarded(NULL, obj);
|
return !allocated_after_mark_start(obj) && _mark_bit_map.mark_weak(cast_from_oop<HeapWord *>(obj));
|
||||||
return (! allocated_after_mark_start(obj)) && _mark_bit_map.mark_weak(cast_from_oop<HeapWord *>(obj));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool ShenandoahMarkingContext::is_marked(oop obj) const {
|
inline bool ShenandoahMarkingContext::is_marked(oop obj) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user