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

Table in Java HotSpot VM Options doc is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • docs
    • None
    • generic

      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?

            rgallard Raymond Gallardo
            dvanero Dennis Van Eron (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: