Skip to content

Commit

Permalink
8322279: Generational ZGC: Use ZFragmentationLimit and ZYoungCompacti…
Browse files Browse the repository at this point in the history
…onLimit as percentage instead of multiples

Reviewed-by: eosterlund
  • Loading branch information
lgxbslgx committed Jan 15, 2024
1 parent c84c0ab commit bf813be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/z/zHeuristics.cpp
Expand Up @@ -101,9 +101,9 @@ uint ZHeuristics::nconcurrent_workers() {
}

size_t ZHeuristics::significant_heap_overhead() {
return MaxHeapSize * ZFragmentationLimit;
return MaxHeapSize * (ZFragmentationLimit / 100);
}

size_t ZHeuristics::significant_young_overhead() {
return MaxHeapSize * ZYoungCompactionLimit;
return MaxHeapSize * (ZYoungCompactionLimit / 100);
}

1 comment on commit bf813be

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.