8081607: Change default GC for server configurations to G1

For more info see JEP 248.

Reviewed-by: pliden, tschatzl
This commit is contained in:
Stefan Johansson 2015-06-24 08:37:12 +02:00
parent 83a0dd66c5
commit f6a2109bab
2 changed files with 12 additions and 9 deletions

View file

@ -1535,7 +1535,11 @@ void Arguments::select_gc_ergonomically() {
if (should_auto_select_low_pause_collector()) {
FLAG_SET_ERGO(bool, UseConcMarkSweepGC, true);
} else {
#if defined(JAVASE_EMBEDDED)
FLAG_SET_ERGO(bool, UseParallelGC, true);
#else
FLAG_SET_ERGO(bool, UseG1GC, true);
#endif
}
} else {
FLAG_SET_ERGO(bool, UseSerialGC, true);