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-23575
Showing
Please register or sign in to comment