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

Shenandoah should recommend -Xlog:safepoint+stats

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 12, 13, 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b11
    • CPU:
      generic
    • OS:
      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

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

              Dates

              Created:
              Updated:
              Resolved: