8382634: Remove redundant TLABRefillWasteFraction zero check

Reviewed-by: tschatzl, phubner
This commit is contained in:
Albert Mingkun Yang 2026-04-22 19:02:47 +00:00
parent 135451eed0
commit fc5fabfb0b
2 changed files with 5 additions and 9 deletions

View File

@ -58,7 +58,11 @@ ThreadLocalAllocBuffer::ThreadLocalAllocBuffer() :
// do nothing. TLABs must be inited by initialize() calls
}
size_t ThreadLocalAllocBuffer::initial_refill_waste_limit() { return desired_size() / TLABRefillWasteFraction; }
size_t ThreadLocalAllocBuffer::initial_refill_waste_limit() {
assert(TLABRefillWasteFraction != 0, "inv");
return desired_size() / TLABRefillWasteFraction;
}
size_t ThreadLocalAllocBuffer::min_size() { return align_object_size(MinTLABSize / HeapWordSize) + alignment_reserve(); }
size_t ThreadLocalAllocBuffer::refill_waste_limit_increment() { return TLABWasteIncrement; }

View File

@ -1703,14 +1703,6 @@ bool Arguments::check_vm_args_consistency() {
// Note: Needs platform-dependent factoring.
bool status = true;
if (TLABRefillWasteFraction == 0) {
jio_fprintf(defaultStream::error_stream(),
"TLABRefillWasteFraction should be a denominator, "
"not %zu\n",
TLABRefillWasteFraction);
status = false;
}
status = CompilerConfig::check_args_consistency(status);
#if INCLUDE_JVMCI
if (status && EnableJVMCI) {