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

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 21
    • 8u451-perf, 11.0.28-oracle, 17.0.13.0.1-oracle, 17.0.15-oracle, 21
    • hotspot

        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.

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

                Created:
                Updated:
                Resolved: