diff --git a/src/hotspot/share/gc/shenandoah/shenandoahAllocator.cpp b/src/hotspot/share/gc/shenandoah/shenandoahAllocator.cpp index cd83c08b238..e656e206272 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahAllocator.cpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahAllocator.cpp @@ -45,14 +45,9 @@ HeapWord* ShenandoahAllocator::allocate(ShenandoahAllocRequest& req, bool& in_ne case ShenandoahAllocRequest::_alloc_cds: in_new_region = true; return _free_set->allocate_contiguous(req, /* is_humongous = */ false); - case ShenandoahAllocRequest::_alloc_plab: - case ShenandoahAllocRequest::_alloc_gclab: - case ShenandoahAllocRequest::_alloc_tlab: - in_new_region = false; - assert(false, "Trying to allocate TLAB in humongous region: %zu", req.size()); - return nullptr; default: ShouldNotReachHere(); + in_new_region = false; return nullptr; } }