Skip to content

Commit

Permalink
No need to change MinRAMPercentage here.
Browse files Browse the repository at this point in the history
MinRAMPercentage is used as maxheap by the legacy ergonomics (aka shared) for when the environment has up to 512MB of RAM.
  • Loading branch information
brunoborges committed Aug 8, 2023
1 parent 92c1df1 commit d8a19e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/hotspot/share/runtime/arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,6 @@ void Arguments::set_heap_size() {

// Update default heap size for dedicated ergonomics profile
if (strcmp(ErgonomicsProfile, "dedicated") == 0) {
FLAG_SET_DEFAULT(MinRAMPercentage, 25.0);
FLAG_SET_DEFAULT(InitialRAMPercentage, 50.0);
if (phys_mem >= 16*G){
FLAG_SET_DEFAULT(MaxRAMPercentage, 90.0);
Expand Down

0 comments on commit d8a19e6

Please sign in to comment.