RFR (S) 8212178: Soft reference reclamation race in com.sun.xml.internal.stream.util.ThreadLocalBufferAllocator

Kim Barrett kim.barrett at oracle.com
Mon Oct 15 17:50:21 UTC 2018

> On Oct 15, 2018, at 8:22 AM, Aleksey Shipilev <shade at redhat.com> wrote:
> Bug:
>  https://bugs.openjdk.java.net/browse/JDK-8212178
> See the details in the bug. We are hitting this race when Shenandoah is running in aggressive mode
> and evacuates lots of objects all the time, processing references very often. This makes weak
> reference reclamation races very visible.
> Fix:
>  http://cr.openjdk.java.net/~shade/8212178/webrev.01/
> I took the liberty of rewriting the entire method to make it more straightforward. New code
> guarantees we never return "null" from this method.
> Testing: failing tests, jdk:tier1, jdk-submit (running)
> Thanks,
> -Aleksey

Change looks good.  Update copyright?

The class documentation here seems very confusing to me, like it’s not really about
this class at all.  But that’s an entirely different problem.

More information about the core-libs-dev mailing list