We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad6644 commit 2d4185fCopy full SHA for 2d4185f
src/hotspot/share/gc/z/zDirector.cpp
@@ -524,6 +524,10 @@ static bool rule_major_allocation_rate(const ZDirectorStats& stats) {
524
}
525
526
static double calculate_young_to_old_worker_ratio(const ZDirectorStats& stats) {
527
+ if (!stats._old_stats._cycle._is_time_trustable) {
528
+ return 1.0;
529
+ }
530
+
531
const double young_gc_time = gc_time(stats._young_stats);
532
const double old_gc_time = gc_time(stats._old_stats);
533
const size_t reclaimed_per_young_gc = stats._young_stats._stat_heap._reclaimed_avg;
0 commit comments