8257793: Shenandoah: SATB barrier should only filter out already strongly marked oops

Reviewed-by: shade, rkennke
This commit is contained in:
Zhengyu Gu 2020-12-07 13:18:02 +00:00
parent e08b9ed0be
commit ecd7e476f8

View File

@ -328,7 +328,7 @@ inline oop ShenandoahHeap::evacuate_object(oop p, Thread* thread) {
inline bool ShenandoahHeap::requires_marking(const void* entry) const {
oop obj = oop(entry);
return !_marking_context->is_marked(obj);
return !_marking_context->is_marked_strong(obj);
}
inline bool ShenandoahHeap::in_collection_set(oop p) const {