RFR: 8254146: Avoid unnecessary volatile write on new AtomicBoolean(false)
Christoph Dreis
github.com+6304496+dreis2211 at openjdk.java.net
Wed Oct 7 17:04:08 UTC 2020
On Wed, 7 Oct 2020 16:52:42 GMT, DougLea <github.com+2233919+DougLea at openjdk.org> wrote:
> I'm a little hesitant about the precedent of checking for 0 in every ctor argument for a volatile field.
I'm confused by this if I'm entirely honest @DougLea . Where do we check for 0 in the proposed change?
-------------
PR: https://git.openjdk.java.net/jdk/pull/510
More information about the core-libs-dev
mailing list