mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6820066: Check that -XX:ParGCArrayScanChunk has a value larger than zero
Check that -XX:ParGCArrayScanChunk has a value larger than zero. Reviewed-by: johnc, jmasa, ysr
This commit is contained in:
parent
edb9e105eb
commit
aad948f0e8
2 changed files with 5 additions and 3 deletions
|
@ -1668,13 +1668,13 @@ bool Arguments::verify_interval(uintx val, uintx min,
|
|||
}
|
||||
|
||||
bool Arguments::verify_min_value(intx val, intx min, const char* name) {
|
||||
// Returns true if given value is greater than specified min threshold
|
||||
// Returns true if given value is at least specified min threshold
|
||||
// false, otherwise.
|
||||
if (val >= min ) {
|
||||
return true;
|
||||
}
|
||||
jio_fprintf(defaultStream::error_stream(),
|
||||
"%s of " INTX_FORMAT " is invalid; must be greater than " INTX_FORMAT "\n",
|
||||
"%s of " INTX_FORMAT " is invalid; must be at least " INTX_FORMAT "\n",
|
||||
name, val, min);
|
||||
return false;
|
||||
}
|
||||
|
@ -1901,6 +1901,8 @@ bool Arguments::check_vm_args_consistency() {
|
|||
status = false;
|
||||
}
|
||||
|
||||
status = status && verify_min_value(ParGCArrayScanChunk, 1, "ParGCArrayScanChunk");
|
||||
|
||||
#ifndef SERIALGC
|
||||
if (UseG1GC) {
|
||||
status = status && verify_percentage(InitiatingHeapOccupancyPercent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue