From f9fa2bc601fb254f215a260b4e6299a8b257db09 Mon Sep 17 00:00:00 2001 From: Xiaolong Peng Date: Fri, 12 Jun 2026 16:27:33 -0700 Subject: [PATCH] style: simplify the branches in humongous alloc code path --- src/hotspot/share/gc/shenandoah/shenandoahAllocator.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; } }