RFR - 6857566 (bf) DirectByteBuffer garbage creation can outpace reclamation

Peter Levart peter.levart at gmail.com
Wed Feb 5 08:08:20 UTC 2014


Hi,

I'm proposing a patch for the following issue:

     https://bugs.openjdk.java.net/browse/JDK-6857566

The patch is basically the same as developed and tested as part of the 
following discussion 3 months ago:

http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-October/021547.html

It's just modified to be applied on top of JDK9 which already changed 
since then. Here's the webrev:

http://cr.openjdk.java.net/~plevart/jdk9-dev/DirectBufferAlloc/webrev.01/


As Alan Bateman pointed out: "A related piece of work is the FileChannel 
map implementation where there is a gc + retry if mmap fails. This could 
be changed to have a similar back-off/retry."

I'm planning to examine this code and come up with a similar patch for 
mapped memory.

Regards, Peter




More information about the core-libs-dev mailing list