mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8360817: [ubsan] zDirector select_worker_threads - outside the range of representable values issue
Reviewed-by: aboldtch, lucy
This commit is contained in:
parent
c851735631
commit
16da81eb43
@ -556,7 +556,7 @@ static double calculate_young_to_old_worker_ratio(const ZDirectorStats& stats) {
|
||||
|
||||
const double old_vs_young_efficiency_ratio = current_old_bytes_freed_per_gc_time / current_young_bytes_freed_per_gc_time;
|
||||
|
||||
return old_vs_young_efficiency_ratio;
|
||||
return MIN2(old_vs_young_efficiency_ratio, (double)ZOldGCThreads);
|
||||
}
|
||||
|
||||
static bool rule_major_proactive(const ZDirectorStats& stats) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user