RFR: 8358077: sun.tools.attach.VirtualMachineImpl::checkCatchesAndSendQuitTo on Linux leaks file handles after JDK-8327114

SendaoYan syan at openjdk.org
Sat May 31 03:52:51 UTC 2025


On Thu, 29 May 2025 19:14:06 GMT, Larry Cable <duke at openjdk.org> wrote:

> 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.

Marked as reviewed by syan (Committer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/25529#pullrequestreview-2883270604


More information about the serviceability-dev mailing list