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

Add missing gc+phases logging for ObjectCount(AfterGC) JFR event collection code

    XMLWordPrintable

Details

    • gc
    • b22

    Backports

      Description

        (Provisionally assigning this to myself, but Oli Gillespie [not an Author yet] would do the actual work)

        Collecting the data for object count events can be expensive (seconds). The G1 concurrent collector has a debug timer for this phase, but Serial, Parallel and G1 full collector are missing this logging, which can cause confusion for the user who sees long pauses with no explanation. Other collectors (ZGC, Shenandoah, Epsilon) do not emit this event, so are not in scope.

        The usual -Xlog:gc+phases=debug should show it.

        Attachments

          Issue Links

            Activity

              People

                ogillespie Oli Gillespie
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: