[jdk21u-dev] RFR: 8210471: GZIPInputStream constructor could leak an un-end()ed Inflater
duke
duke at openjdk.org
Sat May 10 21:49:57 UTC 2025
On Wed, 30 Apr 2025 17:33:04 GMT, Daniel Hu <duke at openjdk.org> wrote:
> Clean backport. The change ensures the Inflater in `GZIPInputStream` is ended for GC when `GZIPInputStream`'s constructor throws an exception, as prior the change the Inflater is left open in that scenario. GHA passes. Added test and test suite `test/jdk/java/util/zip` passes on linux x64. Note that the added test does not test for this specific issue; rather, it's a basic test for `GZIPInputStream`'s constructor as otherwise no test exists.
@cost0much
Your change (at version c874bc4b2cc2de8ccedc7548fc2a29a60caf6e18) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1725#issuecomment-2869168913
More information about the jdk-updates-dev
mailing list