mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-08 07:06:15 +00:00
8265105: gc/arguments/TestSelectDefaultGC.java fails when compiler1 is disabled
Reviewed-by: iveresov
This commit is contained in:
parent
657f103937
commit
31d8a19e47
@ -159,7 +159,8 @@ intx CompilerConfig::scaled_freq_log(intx freq_log, double scale) {
|
||||
}
|
||||
}
|
||||
|
||||
void set_client_emulation_mode_flags() {
|
||||
void CompilerConfig::set_client_emulation_mode_flags() {
|
||||
assert(has_c1(), "Must have C1 compiler present");
|
||||
CompilationModeFlag::set_quick_only();
|
||||
|
||||
FLAG_SET_ERGO(ProfileInterpreter, false);
|
||||
@ -560,17 +561,19 @@ void CompilerConfig::ergo_initialize() {
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (!is_compilation_mode_selected()) {
|
||||
if (has_c1()) {
|
||||
if (!is_compilation_mode_selected()) {
|
||||
#if defined(_WINDOWS) && !defined(_LP64)
|
||||
if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) {
|
||||
FLAG_SET_ERGO(NeverActAsServerClassMachine, true);
|
||||
}
|
||||
if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) {
|
||||
FLAG_SET_ERGO(NeverActAsServerClassMachine, true);
|
||||
}
|
||||
#endif
|
||||
if (NeverActAsServerClassMachine) {
|
||||
if (NeverActAsServerClassMachine) {
|
||||
set_client_emulation_mode_flags();
|
||||
}
|
||||
} else if (!has_c2() && !is_jvmci_compiler()) {
|
||||
set_client_emulation_mode_flags();
|
||||
}
|
||||
} else if (!has_c2() && !is_jvmci_compiler()) {
|
||||
set_client_emulation_mode_flags();
|
||||
}
|
||||
|
||||
set_legacy_emulation_flags();
|
||||
|
||||
@ -246,6 +246,7 @@ private:
|
||||
static void set_compilation_policy_flags();
|
||||
static void set_jvmci_specific_flags();
|
||||
static void set_legacy_emulation_flags();
|
||||
static void set_client_emulation_mode_flags();
|
||||
};
|
||||
|
||||
#endif // SHARE_COMPILER_COMPILERDEFINITIONS_HPP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user