mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-26 23:00:38 +00:00
8382634: Remove redundant TLABRefillWasteFraction zero check
Reviewed-by: tschatzl, phubner
This commit is contained in:
parent
135451eed0
commit
fc5fabfb0b
@ -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; }
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user