Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8308341 JNI_GetCreatedJavaVMs returns a partially initialized JVM
  3. JDK-8309249

Release Note: The `JNI_GetCreatedJavaVMs` Method Will Now Only Return a Fully Initialized VM

    XMLWordPrintable

Details

    Description

      In prior releases, `JNI_GetCreatedJavaVMs`:
      ```
      jint JNI_GetCreatedJavaVMs(JavaVM **vmBuf, jsize bufLen, jsize *nVMs);
      ```
      could return a `JavaVM`, via the `vmBuf` array, that was still in the process of being initialized and may not be ready for use. This has now changed so that it will only return fully initialized VMs. It is important that the programmer checks that the returned number of VMs, in `nVMs`, is greater than zero, before trying to use any `vmBuf` entries.

      Attachments

        Activity

          People

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: