mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8152118: MinTLABSize should be less than TLAB max
Add a constraint for MinTLABSize to be less than or equal to TLAB max Reviewed-by: brutisso, drwhite, jmasa
This commit is contained in:
parent
884837e21c
commit
ed7472e0dd
1 changed files with 8 additions and 2 deletions
|
@ -606,9 +606,15 @@ Flag::Error MinTLABSizeConstraintFunc(size_t value, bool verbose) {
|
|||
"greater than or equal to reserved area in TLAB (" SIZE_FORMAT ")\n",
|
||||
value, ThreadLocalAllocBuffer::alignment_reserve_in_bytes());
|
||||
return Flag::VIOLATES_CONSTRAINT;
|
||||
} else {
|
||||
return Flag::SUCCESS;
|
||||
}
|
||||
if (value > (ThreadLocalAllocBuffer::max_size() * HeapWordSize)) {
|
||||
CommandLineError::print(verbose,
|
||||
"MinTLABSize (" SIZE_FORMAT ") must be "
|
||||
"less than or equal to ergonomic TLAB maximum (" SIZE_FORMAT ")\n",
|
||||
value, ThreadLocalAllocBuffer::max_size() * HeapWordSize);
|
||||
return Flag::VIOLATES_CONSTRAINT;
|
||||
}
|
||||
return Flag::SUCCESS;
|
||||
}
|
||||
|
||||
Flag::Error TLABSizeConstraintFunc(size_t value, bool verbose) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue