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

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


I'm proposing a patch for the following issue:


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


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


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