/libcore/ojluni/src/main/java/java/util/ |
D | ArrayPrefixHelpers.java | 115 final int lo, hi, origin, fence, threshold; field in ArrayPrefixHelpers.CumulateTask 125 this.threshold = in CumulateTask() 132 T[] array, int origin, int fence, int threshold, in CumulateTask() argument 137 this.threshold = threshold; in CumulateTask() 146 int th = threshold, org = origin, fnc = fence, l, h; in compute() 269 final int lo, hi, origin, fence, threshold; field in ArrayPrefixHelpers.LongCumulateTask 279 this.threshold = in LongCumulateTask() 286 long[] array, int origin, int fence, int threshold, in LongCumulateTask() argument 291 this.threshold = threshold; in LongCumulateTask() 300 int th = threshold, org = origin, fnc = fence, l, h; in compute() [all …]
|
D | WeakHashMap.java | 169 private int threshold; field in WeakHashMap 221 threshold = (int)(capacity * loadFactor); in WeakHashMap() 471 if (++size >= threshold) in put() 494 threshold = Integer.MAX_VALUE; in resize() 507 if (size >= threshold / 2) { in resize() 508 threshold = (int)(newCapacity * loadFactor); in resize() 559 if (numKeysToBeAdded > threshold) { in putAll()
|
D | HashMap.java | 420 int threshold; field in HashMap 454 this.threshold = tableSizeFor(initialCapacity); in HashMap() 508 if (t > threshold) in putMapEntries() 509 threshold = tableSizeFor(t); in putMapEntries() 514 while (s > threshold && table.length < MAXIMUM_CAPACITY) in putMapEntries() 667 if (++size > threshold) in putVal() 685 int oldThr = threshold; in resize() 689 threshold = Integer.MAX_VALUE; in resize() 707 threshold = newThr; in resize() 1206 if (size > threshold || (tab = table) == null || in computeIfAbsent() [all …]
|
D | Hashtable.java | 156 private int threshold; field in Hashtable 198 threshold = (int)Math.min(initialCapacity * loadFactor, MAX_ARRAY_SIZE + 1); in Hashtable() 423 threshold = (int)Math.min(newCapacity * loadFactor, MAX_ARRAY_SIZE + 1); in rehash() 440 if (count >= threshold) { in addEntry() 1249 this.threshold = (int)Math.min(length * loadFactor, MAX_ARRAY_SIZE + 1); in defaultWriteHashtable() 1308 threshold = (int)Math.min(length * lf, MAX_ARRAY_SIZE + 1); in readHashtable()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | WeakHashMapTest.java | 165 int threshold = threshold(map); in test_putAll() local 168 for (int i = 0; i < 2 * threshold; ++i) { in test_putAll() 178 private int threshold(WeakHashMap map) throws Exception { in threshold() method in WeakHashMapTest 179 Field threshold = map.getClass().getDeclaredField("threshold"); in threshold() local 180 threshold.setAccessible(true); in threshold() 181 return (int) threshold.get(map); in threshold()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ProgressSource.java | 55 private int threshold = 8192; field in ProgressSource 78 this.threshold = progressMonitor.getProgressUpdateThreshold(); in ProgressSource() 191 if (lastProgress / threshold != progress / threshold) { in updateProgress()
|
/libcore/ojluni/src/test/java/util/IdentityHashMap/ |
D | Capacity.java | 151 static int threshold(int size) throws Throwable { in threshold() method in Capacity 165 final int threshold = threshold(size); in passingThresholdCausesResize() local 166 IdentityHashMap<Object,Object> m = new IdentityHashMap<>(threshold); in passingThresholdCausesResize() 169 growUsingPut(m, threshold); in passingThresholdCausesResize()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ThreadLocal.java | 358 private int threshold; // Default to 0 field in ThreadLocal.ThreadLocalMap 364 threshold = len * 2 / 3; in setThreshold() 506 if (!cleanSomeSlots(i, sz) && sz >= threshold) in set() 702 if (size >= threshold - threshold / 4) in rehash()
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 150 private static int compareUlpDifference(double expected, double computed, double threshold) { in compareUlpDifference() argument 164 if (ulpDifference > threshold) { in compareUlpDifference() 166 ulpDifference, threshold); in compareUlpDifference()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | ThreadLocal.java | 183 private int threshold; field in ThreadLocal.ThreadLocalMap
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectOutputStream.java | 2364 private int threshold; field in ObjectOutputStream.HandleTable 2382 threshold = (int) (initialCapacity * loadFactor); in HandleTable() 2394 if (size >= threshold) { in assign() 2451 threshold = (int) (spine.length * loadFactor); in growSpine()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectOutputStream.java | 604 private int threshold; field in ObjectOutputStream.HandleTable
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | HashMap.java | 287 int threshold; field in HashMap
|