Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200730

Fix debug=gc+phases time tracking in Remark and Cleanup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b11

      Description

      In recent changes lots of time tracking using the GCTraceTime class has been added wrongly.

      In particular these lines look like:

      {
        GCTraceTime(Debug, gc, phases)(<some-string>);
        ...
      }

      This does not track the time in the braces as there is no instance variable defined, i.e. the instance immediately destructed. This results in many "0.000ms" entries in the log.

      This should be fixed.

      Further use the _gc_timer_cm in all these phases to automatically add JFR events.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tschatzl Thomas Schatzl
              Reporter:
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: