RFR: 8197812: (ref) Data race in Finalizer

Martin Buchholz martinrb at google.com
Thu Feb 15 17:05:22 UTC 2018


On Wed, Feb 14, 2018 at 11:47 PM, Peter Levart <peter.levart at gmail.com>
wrote:

>
> Although not strictly necessary for correctness, for the time being, it
> would be nice to be consistent in marking the Finalizer object "already
> finalized" in both places. Either set both next and prev to this or next to
> this and prev to null.
>
>
OK, now only next is ever self-linked.

            this.prev = null;
            this.next = this;           // mark as finalized


More information about the core-libs-dev mailing list