RFR: 8308341: JNI_GetCreatedJavaVMs returns a partially initialized JVM

David Holmes dholmes at openjdk.org
Mon May 29 02:17:59 UTC 2023


On Fri, 26 May 2023 17:50:58 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

> I have one question though: why wouldn't it be enough to move `vm_created = 1` from where we had it before, down to where we now have `vm_created = COMPLETE` ?

Because we need to prevent two threads from concurrently loading and initializing a VM in the same process.

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

PR Comment: https://git.openjdk.org/jdk/pull/14139#issuecomment-1566396959


More information about the hotspot-dev mailing list