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

Change VM.initializeFromArchive() to return a boolean

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 12
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      Currently VM.initializeFromArchive() has no return value.

        public static native void initializeFromArchive(Class<?> c);

      It might be useful to change it to return a boolean:
        True: if initialization from the archive is successful
        False: Not initialized from the archive (archived values are not mapped in the current process; there is an error during initialization from the archive; etc)

      Suggested by Claes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ccheung Calvin Cheung
                Reporter:
                jiangli Jiangli Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: