RFR: 8344332: (bf) Migrate DirectByteBuffer away from jdk.internal.ref.Cleaner [v7]

Liam Miller-Cushon cushon at openjdk.org
Wed Aug 6 17:49:26 UTC 2025


On Thu, 17 Jul 2025 15:23:10 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

>> Kim Barrett has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - add @Override for clean() method
>>  - more commentary for reserveMemory
>
> src/java.base/share/classes/java/nio/BufferCleaner.java line 203:
> 
>> 201:     }
>> 202: 
>> 203:     private static final class CleaningThread extends Thread {
> 
> Similar to https://bugs.openjdk.org/browse/JDK-8346124, should this be creating an `InnocuousThread`?

I filed https://bugs.openjdk.org/browse/JDK-8364954

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25289#discussion_r2257877328


More information about the nio-dev mailing list