MCPcopy Create free account
hub / github.com/antlr/codebuff / initTable

Method initTable

output/java_guava/1.4.19/LocalCache.java:2204–2211  ·  view source on GitHub ↗
(AtomicReferenceArray<ReferenceEntry<K, V>> newTable)

Source from the content-addressed store, hash-verified

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) {

Callers 1

SegmentMethod · 0.95

Calls 2

lengthMethod · 0.45
customWeigherMethod · 0.45

Tested by

no test coverage detected