--- jsr166/src/jsr166e/LongAdder.java 2011/08/01 04:18:59 1.2 +++ jsr166/src/jsr166e/LongAdder.java 2011/08/01 18:54:15 1.4 @@ -28,10 +28,10 @@ import java.io.ObjectOutputStream; * *

Method {@link #sum} returns the current combined total across * the variables maintaining the sum. This value is NOT an - * atomic snapshot: Invocation of sum in the absence of + * atomic snapshot: Invocation of {@code sum} in the absence of * concurrent updates returns an accurate result, but concurrent * updates that occur while the sum is being calculated might not be - * incorporated. The sum may also be reset to zero, as + * incorporated. The sum may also be {@code reset} to zero, as * an alternative to creating a new adder. However, method {@link * #reset} is intrinsically racy, so should only be used when it is * known that no threads are concurrently updating the sum. @@ -146,7 +146,7 @@ public class LongAdder implements Serial */ static final ThreadHashCode threadHashCode = new ThreadHashCode(); - /** Nomber of CPUS, to place bound on table size */ + /** Number of CPUS, to place bound on table size */ private static final int NCPU = Runtime.getRuntime().availableProcessors(); /** @@ -156,7 +156,7 @@ public class LongAdder implements Serial /** * Base sum, used mainly when there is no contention, but also as - * a fallback during table initializion races. Updated via CAS. + * a fallback during table initialization races. Updated via CAS. */ private transient volatile long base;