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