RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v11]

Aleksey Shipilev shade at openjdk.org
Mon Feb 10 09:31:28 UTC 2025


On Thu, 30 Jan 2025 16:25:30 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> @kimbarrett Do you have a change coming to allow waitForPendingReferences be used by WB? I assume this will at least add a comment to the method (or whatever it changes to) to make it clear that it's for testing.
>
> @AlanBateman I've not done any work on JDK-8305186.  There has also been discussion about making
> that function non-private or even public (though with concerns about specification difficulty) for use in
> places like this.
> 
> @shipilev I'm working on a reply, but it might be long-ish.  That outpacing issue for some tests is why this
> code wasn't switched away from jdk.internal.ref.Cleaner a long time ago.  I'm still looking at it, but I currently
> don't think the canary provides a reliable solution to that.

I would like to integrate this PR. How are you doing, @kimbarrett? Have you found any major holes in it?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22165#discussion_r1948705265


More information about the core-libs-dev mailing list