Indeed, if you look at the implementation of AtomicInteger, it is mostly just a volatile int.
On Tue, Dec 14, 2010 at 6:36 PM, Ryan Rawson <ryano...@gmail.com> wrote: > src/main/java/org/apache/hadoop/hbase/regionserver/CoprocessorHost.java > <http://review.cloudera.org/r/1295/#comment6479> > > unless you need CAS semantics, you can just use volatile here. We are > over-using the Atomic* stuff sometimes.