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

Comparing jsr166/src/extra166y/CustomConcurrentHashMap.java (file contents):
Revision 1.5 by jsr166, Tue Oct 6 19:02:48 2009 UTC vs.
Revision 1.6 by dl, Sun Nov 1 22:14:39 2009 UTC

# Line 956 | Line 956 | public class CustomConcurrentHashMap<K,
956                      while (p != null) {
957                          Node n = p.getLinkage();
958                          if (p.get() != null && p.getValue() != null) {
959 +                            pred = p;
960 +                            p = n;
961 +                        }
962 +                        else {
963                              if (pred == null)
964                                  tab[i] = n;
965                              else
# Line 963 | Line 967 | public class CustomConcurrentHashMap<K,
967                              seg.decrementCount();
968                              p = n;
969                          }
966                        else {
967                            pred = p;
968                            p = n;
969                        }
970                      }
971                  }
972              } finally {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines