Skip to content

Commit

Permalink
add parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Sep 16, 2024
1 parent 21fe3ca commit 6902026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/gc/z/zDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ static bool rule_major_allocation_rate(const ZDirectorStats& stats) {

// Calculate the GC cost for each reclaimed byte
const double current_young_gc_time_per_bytes_freed = double(young_gc_time) / double(reclaimed_per_young_gc);
const double current_old_gc_time_per_bytes_freed = reclaimed_per_old_gc == 0 ? std::numeric_limits<double>::infinity() : double(old_gc_time) / double(reclaimed_per_old_gc);
const double current_old_gc_time_per_bytes_freed = ((reclaimed_per_old_gc == 0) ? (std::numeric_limits<double>::infinity())
: (double(old_gc_time) / double(reclaimed_per_old_gc)));

// Calculate extra time per young collection inflicted by *not* doing an
// old collection that frees up memory in the old generation.
Expand Down

0 comments on commit 6902026

Please sign in to comment.