RFR (S) CR 6857566: (bf) DirectByteBuffer garbage creation can outpace reclamation
Alan Bateman
Alan.Bateman at oracle.com
Wed Oct 2 16:31:38 UTC 2013
On 02/10/2013 07:43, Aleksey Shipilev wrote:
> Hi,
>
> There is the issue that annoys me all the time:
> https://bugs.openjdk.java.net/browse/JDK-6857566
>
> Please review the rework of DirectByteBuffer cleanup mechanics fixing
> that issue. Since DBB uses sun.misc.Cleaner as the infrastructure to
> clean up things, we focus there:
> http://cr.openjdk.java.net/~shade/6857566/webrev.00/
>
I'd like to review, I just don't have time at the moment. One thing that
I'd like to understand is the implication of moving from phantom to weak
references. Also the impact on mapped buffers (map implementation in
sun.nio.ch.FileChannelImpl) which will need to be changed too. Also I
think we will need to include a short-running stress test as part of
this change.
-Alan
More information about the core-libs-dev
mailing list