On Wed, 28 Jun 2023 11:05:11 GMT, Sergey Tsypanov <stsypa...@openjdk.org> wrote:

> Double-checked locking should rely on local variable to avoid racy reads from 
> volatile field.

I don't see any race here. The addition of the local serves no purpose AFAICS - 
we don't even save any volatile reads.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14692#issuecomment-1613058223

Reply via email to