RFR: 8294717: (bf) DirectByteBuffer constructor will leak if allocating Deallocator or Cleaner fails with OOME
Brian Burkhalter
bpb at openjdk.org
Thu Oct 6 00:02:39 UTC 2022
Catch any `Throwable` from the `Deallocator` constructor or `Cleaner::create` and free memory to prevent a leak.
-------------
Commit messages:
- 8294717: (bf) DirectByteBuffer constructor will leak if allocating Deallocator or Cleaner fails with OOME
Changes: https://git.openjdk.org/jdk/pull/10588/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10588&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8294717
Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/10588.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10588/head:pull/10588
PR: https://git.openjdk.org/jdk/pull/10588
More information about the nio-dev
mailing list