RFR: 8354878: File Leak in CgroupSubsystemFactory::determine_type of cgroupSubsystem_linux.cpp:300 [v2]

Casper Norrbin cnorrbin at openjdk.org
Thu May 8 11:47:33 UTC 2025


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

Casper Norrbin has updated the pull request incrementally with one additional commit since the last revision:

  fixed copyright header

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25093/files
  - new: https://git.openjdk.org/jdk/pull/25093/files/a5180f6d..c38ac300

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25093&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25093&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/25093.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25093/head:pull/25093

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


More information about the hotspot-runtime-dev mailing list