RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v6]
Aleksey Shipilev
shade at openjdk.org
Tue Jan 21 14:33:43 UTC 2025
On Tue, 21 Jan 2025 13:45:50 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> Okay, there is much more significant change now and will require time to review very closely.
Sure. I was hoping we could avoid changing the feedback path in allocation code, but testing disagreed :)
I remember when we built that feedback path back in JDK 8 days; it is clumsy and hacky and arguably a tech debt, but it worked well on stress tests. Today, migrating DDB to standard Cleaner forces us to figure out that particular part of technical debt: the feedback path from Reference handler to DDB allocation code needs to be replaced with the feedback path from Cleaner. I think current version is less messy than what we had before. No stress test failures so far...
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22165#issuecomment-2604896009
More information about the nio-dev
mailing list