Integrated: 8358077: sun.tools.attach.VirtualMachineImpl::checkCatchesAndSendQuitTo on Linux leaks file handles after JDK-8327114
Larry Cable
duke at openjdk.org
Tue Jun 3 17:15:57 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.
This pull request has now been integrated.
Changeset: 44d62c8e
Author: Larry Cable <larry.cable at oracle.com>
Committer: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/44d62c8e21fb09381f9f86a081f70549cc321b1e
Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod
8358077: sun.tools.attach.VirtualMachineImpl::checkCatchesAndSendQuitTo on Linux leaks file handles after JDK-8327114
Reviewed-by: kevinw, sspitsyn, syan
-------------
PR: https://git.openjdk.org/jdk/pull/25529
More information about the serviceability-dev
mailing list