JDK-8309249 : Release Note: The JNI_GetCreatedJavaVMs Method Will Now Only Return a Fully Initialized VM
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version:
    8u451-perf,11.0.28-oracle,17.0.13.0.1-oracle,17.0.15-oracle,21 8u451-perf,11.0.28-oracle,17.0.13.0.1-oracle,17.0.15-oracle,21
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2023-06-01
  • Updated: 2025-03-07
  • Resolved: 2023-09-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 8
11.0.28-oracleResolved 17.0.15-oracleResolved 21Resolved 8u451-perfResolved
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.


Comments
Release note tasks should be resolved, not closed.
14-09-2023

Release note looks good. - Lois
01-06-2023