Long chains created by direct Buffer::slice (original) (raw)

Paul Sandoz paul.sandoz at oracle.com
Mon Aug 6 18:13:19 UTC 2018


Thanks, i uploaded a new webrev in place that uses a similar technique to some stuff in j.u.concurrent tests.

Paul.

On Aug 5, 2018, at 11:59 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

On 03/08/2018 23:15, Paul Sandoz wrote: Got caught up with JVMLS this week…

I searched but could not find a test, so i added one, see: http://cr.openjdk.java.net/~psandoz/jdk/JDK-8208362-direct-buffer-att/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk/JDK-8208362-direct-buffer-att/webrev/> One comment on the test is that the references to the intermediate refs may not be cleared immediately after the GC. It might be more reliable to loop, with a backoff, until at least one has been cleared. -Alan



More information about the core-libs-dev mailing list