ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/CancelledLockLoops.java
(Generate patch)

Comparing jsr166/src/test/loops/CancelledLockLoops.java (file contents):
Revision 1.5 by jsr166, Mon Nov 2 23:42:46 2009 UTC vs.
Revision 1.6 by jsr166, Mon Nov 2 23:55:36 2009 UTC

# Line 51 | Line 51 | public final class CancelledLockLoops {
51                  threads[i] = new Thread(this);
52              for (int i = 0; i < threads.length; ++i)
53                  threads[i].start();
54 <            Thread[] cancels = (Thread[]) (threads.clone());
54 >            Thread[] cancels = threads.clone();
55              Collections.shuffle(Arrays.asList(cancels), rng);
56              barrier.await();
57              Thread.sleep(TIMEOUT);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines