RFR: 8294717: (bf) DirectByteBuffer constructor will leak if allocating Deallocator or Cleaner fails with OOME [v2]

Alan Bateman alanb at openjdk.org
Fri Oct 7 06:20:11 UTC 2022


On Thu, 6 Oct 2022 15:19:27 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Catch any `Throwable` from the `Deallocator` constructor or `Cleaner::create` and free memory to prevent a leak.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8294717: Add Bits.unreserveMemory to leak prevention

Marked as reviewed by alanb (Reviewer).

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

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


More information about the nio-dev mailing list