--- jsr166/src/jsr166e/StampedLock.java 2012/10/15 14:02:34 1.20 +++ jsr166/src/jsr166e/StampedLock.java 2012/10/17 00:02:47 1.22 @@ -63,7 +63,7 @@ import java.util.concurrent.TimeUnit; * *

StampedLocks are designed for use as internal utilities in the * development of thread-safe components. Their use relies on - * knowledge of the internal properties of the the data, objects, and + * knowledge of the internal properties of the data, objects, and * methods they are protecting. They are not reentrant, so locked * bodies should not call other unknown methods that may try to * re-acquire locks (although you may pass a stamp to other methods @@ -226,7 +226,7 @@ public class StampedLock implements java * threads. Both await methods use a similar spin strategy: If * the associated queue appears to be empty, then the thread * spin-waits up to SPINS times (where each iteration decreases - * spin count with 50% probablility) before enqueing, and then, if + * spin count with 50% probability) before enqueing, and then, if * it is the first thread to be enqueued, spins again up to SPINS * times before blocking. If, upon wakening it fails to obtain * lock, and is still (or becomes) the first waiting thread (which