Integrated: 8294717: (bf) DirectByteBuffer constructor will leak if allocating Deallocator or Cleaner fails with OOME

Brian Burkhalter bpb at openjdk.org
Fri Oct 7 17:46:58 UTC 2022


On Wed, 5 Oct 2022 23:54:47 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.

This pull request has now been integrated.

Changeset: 4cbac40d
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4cbac40de956974760cf54183b3ba29f0b5ec331
Stats:     8 lines in 1 file changed: 7 ins; 0 del; 1 mod

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

Reviewed-by: alanb

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

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


More information about the nio-dev mailing list