Searched refs:threshold (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/io/
H A DSerializationHandleMap.java35 private int threshold; field in class:SerializationHandleMap
39 this.threshold = 21; // Copied from IdentityHashMap.
40 int arraySize = (int) (((long) threshold * 10000) / LOAD_FACTOR);
103 if (++size > threshold) {
121 threshold = (int) ((long) (keys.length) * LOAD_FACTOR / 10000);
/libcore/luni/src/main/java/java/util/
H A DIdentityHashMap.java61 transient int threshold; field in class:IdentityHashMap
64 * default threshold value that an IdentityHashMap created using the default
268 threshold = getThreshold(maxSize);
273 // assign the threshold to maxSize initially, this will change to a
279 int arraySize = (int) (((long) threshold * 10000) / loadFactor) * 2;
281 // leads to overflow and negative arraySize if threshold is too big
474 if (++size > threshold) {
526 threshold = (int) ((long) (elementData.length / 2) * loadFactor / 10000);
810 threshold = getThreshold(DEFAULT_MAX_SIZE);
H A DHashMap.java109 * The table is rehashed when its size exceeds this threshold.
114 private transient int threshold; field in class:HashMap
127 threshold = -1; // Forces first put invocation to replace EMPTY_TABLE
147 threshold = -1; // Forces first put() to replace EMPTY_TABLE
243 // Restore clone to empty state, retaining our capacity and threshold
399 if (size++ > threshold) {
546 * Allocate a table of the given capacity and set the threshold accordingly.
553 threshold = (newCapacity >> 1) + (newCapacity >> 2); // 3/4 capacity
H A DHashtable.java88 * The table is rehashed when its size exceeds this threshold.
93 private transient int threshold; field in class:Hashtable
107 threshold = -1; // Forces first put invocation to replace EMPTY_TABLE
126 threshold = -1; // Forces first put() to replace EMPTY_TABLE
221 // Restore clone to empty state, retaining our capacity and threshold
378 if (size++ > threshold) {
483 * Allocate a table of the given capacity and set the threshold accordingly.
490 threshold = (newCapacity >> 1) + (newCapacity >> 2); // 3/4 capacity
1063 new ObjectStreamField("threshold", int.class),
1071 fields.put("threshold", (in
[all...]
H A DWeakHashMap.java46 private int threshold; field in class:WeakHashMap
268 threshold = (int) ((long) elementData.length * loadFactor / 10000);
606 if (++elementCount > threshold) {
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 237 milliseconds