Skip to content

Commit bf813be

Browse files
committedJan 15, 2024
8322279: Generational ZGC: Use ZFragmentationLimit and ZYoungCompactionLimit as percentage instead of multiples
Reviewed-by: eosterlund
1 parent c84c0ab commit bf813be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/hotspot/share/gc/z/zHeuristics.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ uint ZHeuristics::nconcurrent_workers() {
101101
}
102102

103103
size_t ZHeuristics::significant_heap_overhead() {
104-
return MaxHeapSize * ZFragmentationLimit;
104+
return MaxHeapSize * (ZFragmentationLimit / 100);
105105
}
106106

107107
size_t ZHeuristics::significant_young_overhead() {
108-
return MaxHeapSize * ZYoungCompactionLimit;
108+
return MaxHeapSize * (ZYoungCompactionLimit / 100);
109109
}

0 commit comments

Comments
 (0)
Please sign in to comment.