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

-Xlog:gc,safepoint explaination typo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 17
    • hotspot
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Java 9+

      A DESCRIPTION OF THE PROBLEM :
      On https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#convert-gc-logging-flags-to-xlog it says:

      "`-Xlog:gc,safepoint`
      Logs messages tagged either with the gc or safepoint tags, both using the info level, to stdout, with default decorations. Messages tagged with both gc and safepoint won’t be logged."

      I think the "won't" is a typo. I would expect messages tagged with both gc and safepoint to get logged here.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      * Go to https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#convert-gc-logging-flags-to-xlog
      * Search for "-Xlog:gc,safepoint"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I'd expect it to say:

      "`-Xlog:gc,safepoint`
      Logs messages tagged either with the gc or safepoint tags, both using the info level, to stdout, with default decorations. Messages tagged with both gc and safepoint will be logged."
      ACTUAL -
      "`-Xlog:gc,safepoint`
      Logs messages tagged either with the gc or safepoint tags, both using the info level, to stdout, with default decorations. Messages tagged with both gc and safepoint won’t be logged."

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: