RFR: 8316337: (bf) Concurrency issue in DirectByteBuffer.Deallocator [v3]
Alan Bateman
alanb at openjdk.org
Mon Sep 18 16:46:40 UTC 2023
On Mon, 18 Sep 2023 15:32:42 GMT, Chen Liang <liach at openjdk.org> wrote:
> If only one cleaner thread runs, can we just safely assume it is run only once and simply remove the `deallocated` check, which only defends against some, but not all, of those erroneous situations?
Cleaner specifies that it is run once so yes, I think flag can be dropped, as well as checking if the address is 0.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15784#discussion_r1329012226
More information about the nio-dev
mailing list