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

CDS: Incorrect error message for -Xshare:dump for 64-bit VMs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • tbd
    • hs11
    • hotspot
    • generic
    • generic

      java -d64 -server -Xshare:dump
      Error occurred during initialization of VM
      Dumping a shared archive is not supported on the Server JVM.

      The message it confusing: for latest Hotspot, shared archive is in fact supported on the Server VM, it is just not supported for 64-bit VMs.

      I suggest to change wording to "Dumping a shared archive is not supported on this configuration."
      Here is another confusing message:
      java -server -Xcomp -Xincgc -Xshare:dump
      error: invalid argument combination.
      The CMS collector (-XX:+UseConcMarkSweepGC) must be selected in order
      to use CMSIncrementalMode.
      Could not create the Java virtual machine.

            hseigel Harold Seigel (Inactive)
            nhaustov Nicolay Haustov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: