RFR 8239893: Windows handle Leak when starting processes using ProcessBuilder
Roger.Riggs at oracle.com
Thu Mar 5 20:51:45 UTC 2020
Please review a change to the Windows ProcessImpl to ensure that the handles
created for the input and output streams of a process are closed when no
Unlike on Linux, there is no thread monitoring the process that can
close the streams.
The FileDescriptors are registered with the Cleaner to be closed when
they are no longer referenced.
A test is added that monitors the count of handles as 50 Processes are
launched and exit.
The test and change only affect the Windows implementation.
More information about the core-libs-dev