diff --git a/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp b/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp index 20370d1828f..4045997aed9 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp @@ -113,7 +113,6 @@ inline oop ShenandoahBarrierSet::load_reference_barrier(oop obj, T* load_addr) { if ((HasDecorator::value || HasDecorator::value) && obj != NULL && _heap->is_concurrent_weak_root_in_progress() && !_heap->marking_context()->is_marked_strong(obj)) { - assert(Thread::current()->is_Java_thread(), "only Java threads get here"); return NULL; }