mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-14 14:40:43 +00:00
style: simplify the branches in humongous alloc code path
This commit is contained in:
parent
139cf8d151
commit
f9fa2bc601
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user