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
Backport-of: bf813be0f30391c67de3ea74c7522d7cbb8d3c3b
  • Loading branch information
Liang Mao authored and fisk committed Jan 19, 2024
1 parent 6443937 commit 95e36bc
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 95e36bc

@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.