mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
Merge
This commit is contained in:
commit
11da6c2e2a
3 changed files with 28 additions and 2 deletions
|
@ -1561,6 +1561,18 @@ bool Arguments::verify_interval(uintx val, uintx min,
|
|||
return false;
|
||||
}
|
||||
|
||||
bool Arguments::verify_min_value(intx val, intx min, const char* name) {
|
||||
// Returns true if given value is greater than 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",
|
||||
name, val, min);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Arguments::verify_percentage(uintx value, const char* name) {
|
||||
if (value <= 100) {
|
||||
return true;
|
||||
|
@ -1613,6 +1625,16 @@ bool Arguments::check_gc_consistency() {
|
|||
return status;
|
||||
}
|
||||
|
||||
// Check stack pages settings
|
||||
bool Arguments::check_stack_pages()
|
||||
{
|
||||
bool status = true;
|
||||
status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages");
|
||||
status = status && verify_min_value(StackRedPages, 1, "StackRedPages");
|
||||
status = status && verify_min_value(StackShadowPages, 1, "StackShadowPages");
|
||||
return status;
|
||||
}
|
||||
|
||||
// Check the consistency of vm_init_args
|
||||
bool Arguments::check_vm_args_consistency() {
|
||||
// Method for adding checks for flag consistency.
|
||||
|
@ -1725,6 +1747,7 @@ bool Arguments::check_vm_args_consistency() {
|
|||
}
|
||||
|
||||
status = status && check_gc_consistency();
|
||||
status = status && check_stack_pages();
|
||||
|
||||
if (_has_alloc_profile) {
|
||||
if (UseParallelGC || UseParallelOldGC) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue