Searched refs:MAXIMUM_CAPACITY (Results 1 – 6 of 6) sorted by relevance
242 static final int MAXIMUM_CAPACITY = 1 << 30; field in HashMap384 return (n < 0) ? 1 : (n >= MAXIMUM_CAPACITY) ? MAXIMUM_CAPACITY : n + 1; in tableSizeFor()450 if (initialCapacity > MAXIMUM_CAPACITY) in HashMap()451 initialCapacity = MAXIMUM_CAPACITY; in HashMap()504 int t = ((ft < (float)MAXIMUM_CAPACITY) ? in putMapEntries()505 (int)ft : MAXIMUM_CAPACITY); in putMapEntries()682 if (oldCap >= MAXIMUM_CAPACITY) { in resize()686 else if ((newCap = oldCap << 1) < MAXIMUM_CAPACITY && in resize()698 newThr = (newCap < MAXIMUM_CAPACITY && ft < (float)MAXIMUM_CAPACITY ? in resize()1393 (fc >= MAXIMUM_CAPACITY) ? in readObject()[all …]
150 private static final int MAXIMUM_CAPACITY = 1 << 30; field in WeakHashMap211 if (initialCapacity > MAXIMUM_CAPACITY) in WeakHashMap()212 initialCapacity = MAXIMUM_CAPACITY; in WeakHashMap()487 if (oldCapacity == MAXIMUM_CAPACITY) { in resize()556 if (targetCapacity > MAXIMUM_CAPACITY) in putAll()557 targetCapacity = MAXIMUM_CAPACITY; in putAll()
323 HashMap.MAXIMUM_CAPACITY); in readObject()
167 private static final int MAXIMUM_CAPACITY = 1 << 29; field in IdentityHashMap239 (expectedMaxSize > MAXIMUM_CAPACITY / 3) ? MAXIMUM_CAPACITY : in capacity()463 if (oldLength == 2 * MAXIMUM_CAPACITY) { // can't expand any further in resize()464 if (size == MAXIMUM_CAPACITY - 1) in resize()
508 private static final int MAXIMUM_CAPACITY = 1 << 30; field in ConcurrentHashMap707 return (n < 0) ? 1 : (n >= MAXIMUM_CAPACITY) ? MAXIMUM_CAPACITY : n + 1; in tableSizeFor()847 int cap = ((initialCapacity >= (MAXIMUM_CAPACITY >>> 1)) ? in ConcurrentHashMap()848 MAXIMUM_CAPACITY : in ConcurrentHashMap()907 int cap = (size >= (long)MAXIMUM_CAPACITY) ? in ConcurrentHashMap()908 MAXIMUM_CAPACITY : tableSizeFor((int)size); in ConcurrentHashMap()1474 if (size >= (long)(MAXIMUM_CAPACITY >>> 1)) in readObject()1475 n = MAXIMUM_CAPACITY; in readObject()2345 (n = tab.length) < MAXIMUM_CAPACITY) { in addCount()2392 int c = (size >= (MAXIMUM_CAPACITY >>> 1)) ? MAXIMUM_CAPACITY : in tryPresize()[all …]
261 static final int MAXIMUM_CAPACITY = 1073741824; // 0x40000000 field in HashMap