Skip to content

Commit 3b476a1

Browse files
committed
8292847: Zero: Allow ergonomics to select the GC
Reviewed-by: tschatzl, stuefe
1 parent 16047e8 commit 3b476a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hotspot/share/runtime/arguments.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -3152,6 +3152,12 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
31523152
#ifdef ZERO
31533153
// Zero always runs in interpreted mode
31543154
set_mode_flags(_int);
3155+
3156+
// Zero runs without compilers. Do not let compiler selection code
3157+
// to force it into Serial GC, let the GC ergonomics decide.
3158+
if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) {
3159+
FLAG_SET_ERGO(NeverActAsServerClassMachine, false);
3160+
}
31553161
#endif
31563162

31573163
// eventually fix up InitialTenuringThreshold if only MaxTenuringThreshold is set

0 commit comments

Comments
 (0)