Skip to content

Commit

Permalink
Use ParallelGC as default GC
Browse files Browse the repository at this point in the history
  • Loading branch information
stefank committed Apr 24, 2024
1 parent 11970a2 commit 46a7512
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hotspot/share/gc/shared/gcConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ void GCConfig::fail_if_non_included_gc_is_selected() {
}

void GCConfig::select_gc_ergonomically() {
if (!UseNewCode) {
FLAG_SET_ERGO_IF_DEFAULT(UseParallelGC, true);
return;
}

if (os::is_server_class_machine()) {
#if INCLUDE_G1GC
FLAG_SET_ERGO_IF_DEFAULT(UseG1GC, true);
Expand Down

0 comments on commit 46a7512

Please sign in to comment.