Avoid unnecessary explicit initialization of Atomics
Constructor calls like new AtomicInteger(0) cause a volatile write that can be saved in cases where the constructor parameter is the default value. See gh-23575pull/23582/head
parent
48c2f4d9cc
commit
ecee9c0f9b
Loading…
Reference in New Issue