--- jsr166/src/jsr166e/StripedAdder.java 2011/07/20 15:00:56 1.1 +++ jsr166/src/jsr166e/StripedAdder.java 2011/07/20 16:06:19 1.2 @@ -22,7 +22,7 @@ import java.io.ObjectOutputStream; * NOT an atomic snapshot (concurrent updates may occur while * the sum is being calculated), and so cannot be used alone for * fine-grained synchronization control. - * + * *
This class may be applicable when many threads frequently
* update a common sum that is used for purposes such as collecting
* statistics. In this case, performance may be significantly faster
@@ -31,7 +31,7 @@ import java.io.ObjectOutputStream;
* only one thread can ever update the sum, performance may be
* significantly slower than just updating a local variable.
*
- * @author Doug Lea
+ * @author Doug Lea
*/
public class StripedAdder implements Serializable {
private static final long serialVersionUID = 7249069246863182397L;
@@ -52,7 +52,7 @@ public class StripedAdder implements Ser
* candidate Adder.
*/
- /**
+ /**
* Number of processors, to place a cap on table growth.
*/
static final int NCPU = Runtime.getRuntime().availableProcessors();
@@ -66,7 +66,7 @@ public class StripedAdder implements Ser
Adder(long x) { super(x); }
}
- /**
+ /**
* Holder for the thread-local hash code.
*/
static final class HashCode {
@@ -79,7 +79,7 @@ public class StripedAdder implements Ser
*/
static final class ThreadHashCode extends ThreadLocal