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

Table in Java HotSpot VM Options doc is incorrect

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: docs
    • Labels:
      None
    • Subcomponent:
    • OS:
      generic

      Description

      Java HotSpot VM Options

      document located

      http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

      has a table

      It appears that the header of the table says "Option and Default Value".
      So actually -XX:-DisableExplicitGC is correct since it is the default value.
      However, the description appears to be wrong, because the description does not describe the default value.

      To clarify the description could say the following

      By default calls to System.gc() are enabled (-XX:-DisableExplicitGC). Use -XX:+DisableExplicitGC to disable calls to System.gc().
      Note that the JVM still performs garbage collection when necessary.

      Does this seem reasonable?

        Attachments

          Activity

            People

            • Assignee:
              rgallard Raymond Gallardo
              Reporter:
              dvanero Dennis Van Eron
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: