RFR: 8358077: sun.tools.attach.VirtualMachineImpl::checkCatchesAndSendQuitTo on Linux leaks file handles after JDK-8327114
Larry Cable
duke at openjdk.org
Fri May 30 16:20:02 UTC 2025
JDK-8358077:sun.tools.attach.VirtualMachineImpl::checkCatchesAndSendQuitTo on Linux leaks file handles after JDK-8327114
modified the code to place the `Files::lines` in a `try-with-resources` block in order to autoclose the `Stream` and underlying file resources immediately.
-------------
Commit messages:
- JDK-8358077:sun.tools.attach.VirtualMachineImpl::checkCatchesAndSendQuitTo on Linux leaks file handles after JDK-8327114
Changes: https://git.openjdk.org/jdk/pull/25529/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25529&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8358077
Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/25529.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25529/head:pull/25529
PR: https://git.openjdk.org/jdk/pull/25529
More information about the serviceability-dev
mailing list