A DESCRIPTION OF THE REQUEST :
Current implementation on Windows JVM is to issue a TerminateProcess() on Process::destroy().
Now that Java8 has a Process::destroyForcibly(), which currently delegates to destroy(), the two methods should have separate implementations.
destroyForcibly() should call TerminateProcess()
destroy() should call ExitProcess()
JUSTIFICATION :
This will allow shutdown hooks to be called on Process::destroy(), just like on Solaris/Linux.
Current implementation on Windows JVM is to issue a TerminateProcess() on Process::destroy().
Now that Java8 has a Process::destroyForcibly(), which currently delegates to destroy(), the two methods should have separate implementations.
destroyForcibly() should call TerminateProcess()
destroy() should call ExitProcess()
JUSTIFICATION :
This will allow shutdown hooks to be called on Process::destroy(), just like on Solaris/Linux.
- relates to
-
JDK-4485742 Process.destroy() and shutdown hook platform specific behavior
-
- Closed
-
-
JDK-4333183 (process) Add a way to gently shutdown, as opposed to destroy, a subprocess
-
- Closed
-