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

java -Xshare:on document needs to be updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17.0.3-oracle
    • Component/s: docs
    • Labels:

      Description

      https://docs.oracle.com/en/java/javase/17/vm/class-data-sharing.html#GUID-0260F857-A70E-4399-A1DF-A5766BE33285

      The existing text:

      Note:The -Xshare:on is for testing purposes only and may cause intermittent failures due to the use of address space layout randomization by the operating system. This option should not be used in production environments.

      should be replaced with

      Note:The -Xshare:on option is for testing purposes only. It may cause the VM to unexpectedly exit during start-up when the CDS archive cannot be used (for example, when certain VM parameters are changed, or when a different JDK is used). This option should not be used in production environments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ssatish Savitha Satish
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: