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

G1GarbageCollection JFR event gets gc phase, not gc type

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • gc
    • b14

    Description

      The enum attached to G1YCType is supposed to be the "type" of young gc (there is no further description for it).

      Currently this is mapped to GC "phases" (normal collections, during mark or rebuild, mixed collections, ...) which is very likely not the intention to show in the JFR event.

      It looks like that G1YCType is only used for JFR. I think the enum can be removed and G1CollectorPolicy::PauseKind used.

      From an end-user POV this is not an issue as the values that are printed look like pause names, but internally extra "phases" do not make sense. Hence I'm tagging this as enhancement/cleanup.

      (or the equivalent enums from JDK-8143041)

      Attachments

        Issue Links

          Activity

            People

              tschatzl Thomas Schatzl
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: