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

Shenandoah should recommend -Xlog:safepoint+stats

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 14
    • 12, 13, 14
    • hotspot
    • gc
    • b11
    • generic
    • generic

    Description

      -Xlog:gc+stats=info prints this:

      [0.117s][info][gc,stats] "(G)" (gross) pauses include VM time: time to notify and block threads, do the pre-
      [0.117s][info][gc,stats] and post-safepoint housekeeping. Use -XX:+PrintSafepointStatistics to dissect.

      However, -XX:+PrintSafepointStatistics was removed in OpenJDK 12. For the current tip, the replacement is -Xlog:safepoint+stats=info. In OpenJDK 12, it was -Xlog:safepoint+stats=debug.

      OpenJDK 11 prints a deprecation warning for -XX:+PrintSafepointStatistics, but it does not seem that it is possible to get the output using -Xlog, so it does not seem that anything needs to be changed there.

      Attachments

        Activity

          People

            shade Aleksey Shipilev
            fweimer Florian Weimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: