diff -r b518cd4045bc -r d25399d849bc jdk/src/share/classes/java/util/concurrent/RecursiveAction.java --- a/jdk/src/share/classes/java/util/concurrent/RecursiveAction.java Tue Jul 09 10:44:49 2013 +0200 +++ b/jdk/src/share/classes/java/util/concurrent/RecursiveAction.java Tue Jul 09 16:04:25 2013 +0200 @@ -63,7 +63,7 @@ * } * } * // implementation details follow: - * final static int THRESHOLD = 1000; + * static final int THRESHOLD = 1000; * void sortSequentially(int lo, int hi) { * Arrays.sort(array, lo, hi); * } @@ -140,21 +140,21 @@ * int h = hi; * Applyer right = null; * while (h - l > 1 && getSurplusQueuedTaskCount() <= 3) { - * int mid = (l + h) >>> 1; - * right = new Applyer(array, mid, h, right); - * right.fork(); - * h = mid; + * int mid = (l + h) >>> 1; + * right = new Applyer(array, mid, h, right); + * right.fork(); + * h = mid; * } * double sum = atLeaf(l, h); * while (right != null) { - * if (right.tryUnfork()) // directly calculate if not stolen - * sum += right.atLeaf(right.lo, right.hi); + * if (right.tryUnfork()) // directly calculate if not stolen + * sum += right.atLeaf(right.lo, right.hi); * else { - * right.join(); - * sum += right.result; - * } - * right = right.next; - * } + * right.join(); + * sum += right.result; + * } + * right = right.next; + * } * result = sum; * } * }}