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

G1: Improve logging for Remembered Sets

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • hotspot
    • gc
    • b27

    Description

      with `gc+phases=debug`, one get logs like:

      ```
      Eager Reclaim (ms): skipped
      Remembered Sets (ms): Min: 0.0, Avg: 0.0, Max: 0.0, Diff: 0.0, Sum: 0.1, Workers: 10
        Merged Inline Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged ArrayOfCards Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged Howl Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged Full Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged Howl Inline Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged Howl ArrayOfCards Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged Howl BitMap Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged Howl Full Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
        Merged Cards Min: 0, Avg: 0.0, Max: 0, Diff: 0, Sum: 0, Workers: 10
      ```

      The stats for various remset containers further indented, suggesting that they are part of the enclosing phase, `Remembered Sets (ms)`. However, those stats cover `Eager Reclaimed (ms)` as well.

      Considering moving `Eager Reclaim (ms)` inside `Remembered Sets (ms)`, which has two benefits:

      1. `Eager Reclaim (ms)` is about merging remset as well, so it can be considered as part of `Remembered Sets (ms)`.
      2. The placement of stats is less misleading.

      Attachments

        Issue Links

          Activity

            People

              ayang Albert Yang
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: