(AtomicReferenceArray<ReferenceEntry<K, V>> newTable)
| 2197 | |
| 2198 | |
| 2199 | void initTable(AtomicReferenceArray<ReferenceEntry<K, V>> newTable) { |
| 2200 | this.threshold = newTable.length() * 3 / 4; // 0.75 |
| 2201 | if (!map.customWeigher() && this.threshold == maxSegmentWeight) { |
| 2202 | // prevent spurious expansion before eviction |
| 2203 | this.threshold++; |
| 2204 | } |
| 2205 | this.table = newTable; |
| 2206 | } |
| 2207 | |
| 2208 | @GuardedBy("this") |
| 2209 | ReferenceEntry<K, V> newEntry(K key, int hash, @Nullable ReferenceEntry<K, V> next) { |
no test coverage detected