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

Comparing jsr166/src/test/loops/BoxedLongSort.java (file contents):
Revision 1.4 by jsr166, Mon Nov 29 20:58:06 2010 UTC vs.
Revision 1.6 by jsr166, Mon Oct 10 16:59:04 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import java.util.concurrent.*;
# Line 13 | Line 13 | class BoxedLongSort {
13      static int THRESHOLD;
14      static final boolean warmup = true;
15  
16 <    public static void main (String[] args) throws Exception {
16 >    public static void main(String[] args) throws Exception {
17          int procs = 0;
18          int n = 1 << 22;
19          int reps = 20;
# Line 206 | Line 206 | class BoxedLongSort {
206  
207      }
208  
209 <    static void checkSorted (Long[] a) {
209 >    static void checkSorted(Long[] a) {
210          int n = a.length;
211          for (int i = 0; i < n - 1; i++) {
212              if (a[i] > a[i+1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines