mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8014765: VM exits if MaxTenuringThreshold is set below the default InitialTenuringThreshold, and InitialTenuringThreshold is not set
The VM exits when the condition in the subject line applies. The fix sets InitialTenuringThreshold to MaxTenuringThreshold if it is larger than MaxTenuringThreshold and InitialTenuringThreshold has not been set (is default). Reviewed-by: jwilhelm, jmasa, brutisso, johnc
This commit is contained in:
parent
5838d847a1
commit
b8276670c2
2 changed files with 80 additions and 0 deletions
|
@ -3044,6 +3044,11 @@ jint Arguments::finalize_vm_init_args(SysClassPath* scp_p, bool scp_assembly_req
|
|||
set_mode_flags(_int);
|
||||
}
|
||||
|
||||
// eventually fix up InitialTenuringThreshold if only MaxTenuringThreshold is set
|
||||
if (FLAG_IS_DEFAULT(InitialTenuringThreshold) && (InitialTenuringThreshold > MaxTenuringThreshold)) {
|
||||
FLAG_SET_ERGO(uintx, InitialTenuringThreshold, MaxTenuringThreshold);
|
||||
}
|
||||
|
||||
#ifndef COMPILER2
|
||||
// Don't degrade server performance for footprint
|
||||
if (FLAG_IS_DEFAULT(UseLargePages) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue