RFR: 8308341: JNI_GetCreatedJavaVMs returns a partially initialized JVM

Gerard Ziemski gziemski at openjdk.org
Fri May 26 18:04:56 UTC 2023


On Thu, 25 May 2023 05:02:19 GMT, David Holmes <dholmes at openjdk.org> wrote:

> We now track the in-progress and completed states of VM creation and only return a VM from JNI_GetCreatedJavaVMs when there is a fully initialized VM.
> 
> Testing: 
>  - new regression test
>  - tiers 1-3 (sanity)
> 
> Thanks

test/hotspot/jtreg/runtime/jni/getCreatedJavaVMs/TestGetCreatedJavaVMs.java line 27:

> 25:  * @test
> 26:  * @library /test/lib
> 27:  * @requires os.family == "Linux"

Why is it Linux only?

Does `ProcessTools.createNativeTestProcessBuilder("GetCreatedJavaVMs");` only work on Linux?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14139#discussion_r1207155995


More information about the hotspot-dev mailing list