8180450: secondary_super_cache does not scale well

Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Reviewed-by: kvn, vlivanov, dlong
This commit is contained in:
Andrew Haley 2024-04-16 14:21:48 +00:00
parent bfff02eef6
commit f11a496de6
40 changed files with 2209 additions and 48 deletions

View file

@ -3685,6 +3685,17 @@ jint Arguments::apply_ergo() {
return code;
}
if (FLAG_IS_DEFAULT(UseSecondarySupersTable)) {
FLAG_SET_DEFAULT(UseSecondarySupersTable, VM_Version::supports_secondary_supers_table());
} else if (UseSecondarySupersTable && !VM_Version::supports_secondary_supers_table()) {
warning("UseSecondarySupersTable is not supported");
FLAG_SET_DEFAULT(UseSecondarySupersTable, false);
}
if (!UseSecondarySupersTable) {
FLAG_SET_DEFAULT(StressSecondarySupers, false);
FLAG_SET_DEFAULT(VerifySecondarySupers, false);
}
#ifdef ZERO
// Clear flags not supported on zero.
FLAG_SET_DEFAULT(ProfileInterpreter, false);