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

Comparing jsr166/src/jsr166e/ConcurrentHashMapV8.java (file contents):
Revision 1.5 by dl, Tue Aug 30 11:35:39 2011 UTC vs.
Revision 1.6 by jsr166, Tue Aug 30 13:30:35 2011 UTC

# Line 989 | Line 989 | public class ConcurrentHashMapV8<K, V>
989       */
990      public int size() {
991          long n = counter.sum();
992 <        return (n <= 0L) ? 0 :
993 <            (n >= Integer.MAX_VALUE) ? Integer.MAX_VALUE :
994 <            (int)n;
992 >        return ((n >>> 31) == 0) ? (int)n : (n < 0L) ? 0 : Integer.MAX_VALUE;
993      }
994  
995      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines