/[classpath]/classpath/java/util/IdentityHashMap.java
ViewVC logotype

Diff of /classpath/java/util/IdentityHashMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mkoch, Fri Oct 22 17:15:57 2004 UTC revision 1.16 by tromey, Wed Jan 5 19:01:51 2005 UTC
# Line 492  public class IdentityHashMap extends Abs Line 492  public class IdentityHashMap extends Abs
492          Object[] old = table;          Object[] old = table;
493          // This isn't necessarily prime, but it is an odd number of key/value          // This isn't necessarily prime, but it is an odd number of key/value
494          // slots, which has a higher probability of fewer collisions.          // slots, which has a higher probability of fewer collisions.
495          table = new Object[old.length << 1 + 2];          table = new Object[(old.length * 2) + 2];
496          Arrays.fill(table, emptyslot);          Arrays.fill(table, emptyslot);
497          size = 0;          size = 0;
498          threshold = (table.length >>> 3) * 3;          threshold = (table.length >>> 3) * 3;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26