RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259
Daniel Jeliński
djelinski at openjdk.org
Fri Jun 7 20:59:11 UTC 2024
On Fri, 7 Jun 2024 20:36:45 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> I only left it here because the wait for interrupt event was already present. Is being stuck in a blocking os call a bad thing? If not, I can drop the interrupt event, and wait on the process handle only.
>
> I think waiting on JVM_GetThreadInterruptEvent() is necessary during VM shutdown to allow the blocked thread to exit cleanly.
Interesting. Could you point me to a related bug / documentation / evidence? I tested the WaitForSingleObject version (commit 6524747a5ebc51c760b14e90309c5f18b58b20e2) on Windows 11, and I didn't observe any problems with shutting down the VM
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19586#discussion_r1631678678
More information about the core-libs-dev
mailing list