RFR: 8290732: JNI DestroyJavaVM can start shutdown when one non-daemon thread remains [v3]
David Holmes
dholmes at openjdk.org
Thu Aug 11 02:55:47 UTC 2022
On Tue, 9 Aug 2022 09:31:59 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> David Holmes has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fixed `if` block indentation per Magnus's request
>
> Hi David,
>
> that was interesting. I always thought you have to detach before destroying the VM.
>
> I looked into https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/invocation.html and it says:
>
> "Detaching from the VM: A native thread attached to the VM must call DetachCurrentThread() to detach itself before exiting."
>
> Cheers, Thomas
Thanks for looking at this @tstuefe and @magicus
-------------
PR: https://git.openjdk.org/jdk/pull/9803
More information about the hotspot-runtime-dev
mailing list