Skip to content

Commit 16da81e

Browse files
committed
8360817: [ubsan] zDirector select_worker_threads - outside the range of representable values issue
Reviewed-by: aboldtch, lucy
1 parent c851735 commit 16da81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/z/zDirector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ static double calculate_young_to_old_worker_ratio(const ZDirectorStats& stats) {
556556

557557
const double old_vs_young_efficiency_ratio = current_old_bytes_freed_per_gc_time / current_young_bytes_freed_per_gc_time;
558558

559-
return old_vs_young_efficiency_ratio;
559+
return MIN2(old_vs_young_efficiency_ratio, (double)ZOldGCThreads);
560560
}
561561

562562
static bool rule_major_proactive(const ZDirectorStats& stats) {

0 commit comments

Comments
 (0)