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

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 21
    • Affects Version/s: 8u451-perf, 11.0.28-oracle, 17.0.13.0.1-oracle, 17.0.15-oracle, 21
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: