JDK-8282484 : G1: Predicted old time in log always zero
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 13,14,15,16,17,18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-03-01
  • Updated: 2022-03-07
  • Resolved: 2022-03-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 masterFixed
Related Reports
Relates :  
Description
There is a log message at gc+ergo+cset=debug level that reads:

  log_debug(gc, ergo, cset)("Finish choosing collection set old regions. Initial: %u, optional: %u, "
                            "predicted old time: %1.2fms, predicted optional time: %1.2fms, time remaining: %1.2f",
                            num_initial_regions, num_optional_regions,
                            predicted_initial_time_ms, predicted_optional_time_ms, time_remaining_ms);

The value used for printing the predicted old time is always zero. Instead of using predicted_old_time in the method, predicted_initial_time_ms should be used, and predicted_old_time removed.

Issue introduced in JDK-8218668 apparently.
Comments
Changeset: d4d1fbc2 Author: Thomas Schatzl <tschatzl@openjdk.org> Date: 2022-03-03 09:26:41 +0000 URL: https://git.openjdk.java.net/jdk/commit/d4d1fbc27a2382d8d9545b7bf672cdcc81654404
03-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7657 Date: 2022-03-02 09:56:37 +0000
02-03-2022