Integrated: 8354878: File Leak in CgroupSubsystemFactory::determine_type of cgroupSubsystem_linux.cpp:300

Casper Norrbin cnorrbin at openjdk.org
Thu May 8 16:23:58 UTC 2025


On Wed, 7 May 2025 13:03:42 GMT, Casper Norrbin <cnorrbin at openjdk.org> wrote:

> Hi,
> 
> There's a file descriptor in `cgroupSubsystem_linux.cpp` that isn't closed if we successfully open it but can't read from it. In that case, the open descriptor should still be closed before returning.

This pull request has now been integrated.

Changeset: 7f3191a6
Author:    Casper Norrbin <cnorrbin at openjdk.org>
Committer: Severin Gehwolf <sgehwolf at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7f3191a630edba32ddb7bb64a835ec663d91ed92
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8354878: File Leak in CgroupSubsystemFactory::determine_type of cgroupSubsystem_linux.cpp:300

Reviewed-by: sgehwolf, jsjolen, dholmes

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

PR: https://git.openjdk.org/jdk/pull/25093


More information about the hotspot-runtime-dev mailing list