ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/forkjoin/PAS.java
(Generate patch)

Comparing jsr166/src/jsr166y/forkjoin/PAS.java (file contents):
Revision 1.5 by dl, Wed Jan 23 10:20:40 2008 UTC vs.
Revision 1.6 by dl, Sun Feb 10 21:06:26 2008 UTC

# Line 48 | Line 48 | class PAS {
48       *
49       * Split control relies on pap.getThreshold(), which is
50       * expected to err on the side of generating too many tasks. To
51 <     * counterblance, if a task pops off its smallest subtask, it
52 <     * directly runs its leaf action rather than possibly replitting.
51 >     * counterbalance, if a task pops off its own smallest subtask, it
52 >     * directly runs its leaf action rather than possibly resplitting.
53       *
54       * There are, with a few exceptions, three flavors of each FJBase
55       * subclass, prefixed FJO (object reference), FJD (double) and FJL
# Line 1492 | Line 1492 | class PAS {
1492                      if (d != 0) {
1493                          if ((int)(d >>> 32) == hash) {
1494                              Object y = src[(int)((d-1) & 0x7fffffffL)];
1495 <                            if (byIdentity? (x == y) : x.equals(y))
1495 >                            if (x == y || (!byIdentity && x.equals(y)))
1496                                  break;
1497                          }
1498                          idx = (idx + 1) & mask;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines