Home
last modified time | relevance | path

Searched refs:ReferenceEntry (Results 1 – 11 of 11) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java298 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value) { in referenceValue()
311 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value) { in referenceValue()
324 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value) { in referenceValue()
338 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value); in referenceValue()
354 <K, V> ReferenceEntry<K, V> newEntry( in newEntry()
355 Segment<K, V> segment, K key, int hash, @Nullable ReferenceEntry<K, V> next) { in newEntry()
361 <K, V> ReferenceEntry<K, V> newEntry( in newEntry()
362 Segment<K, V> segment, K key, int hash, @Nullable ReferenceEntry<K, V> next) { in newEntry()
367 <K, V> ReferenceEntry<K, V> copyEntry( in copyEntry()
368 Segment<K, V> segment, ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext) { in copyEntry()
[all …]
DComputingConcurrentHashMap.java81 ReferenceEntry<K, V> e = getEntry(key, hash); in getOrCompute()
100 AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table; in getOrCompute()
102 ReferenceEntry<K, V> first = table.get(index); in getOrCompute()
171 V compute(K key, int hash, ReferenceEntry<K, V> e, in compute()
221 public ReferenceEntry<K, V> getEntry() { in getEntry()
227 ReferenceQueue<V> queue, V value, ReferenceEntry<K, V> entry) { in copyFor()
261 public ReferenceEntry<K, V> getEntry() { in getEntry()
267 ReferenceQueue<V> queue, V value, ReferenceEntry<K, V> entry) { in copyFor()
303 public ReferenceEntry<K, V> getEntry() { in getEntry()
309 ReferenceQueue<V> queue, @Nullable V value, ReferenceEntry<K, V> entry) { in copyFor()
DInterners.java23 import com.google.common.collect.MapMakerInternalMap.ReferenceEntry;
76 ReferenceEntry<E, Dummy> entry = map.getEntry(sample);
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java381 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value, int weight) { in referenceValue()
396 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value, int weight) { in referenceValue()
412 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value, int weight) { in referenceValue()
429 Segment<K, V> segment, ReferenceEntry<K, V> entry, V value, int weight); in referenceValue()
445 <K, V> ReferenceEntry<K, V> newEntry( in newEntry()
446 Segment<K, V> segment, K key, int hash, @Nullable ReferenceEntry<K, V> next) { in newEntry()
452 <K, V> ReferenceEntry<K, V> newEntry( in newEntry()
453 Segment<K, V> segment, K key, int hash, @Nullable ReferenceEntry<K, V> next) { in newEntry()
458 <K, V> ReferenceEntry<K, V> copyEntry( in copyEntry()
459 Segment<K, V> segment, ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext) { in copyEntry()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java32 import com.google.common.collect.MapMakerInternalMap.ReferenceEntry;
369 ReferenceEntry<Object, Object> entry = segment.getEntry(one, hash); in testRemovalListener_collected()
416 ReferenceEntry<Object, Object> entryOne = map.newEntry(keyOne, hashOne, null); in testNewEntry()
429 ReferenceEntry<Object, Object> entryTwo = map.newEntry(keyTwo, hashTwo, entryOne); in testNewEntry()
448 ReferenceEntry<Object, Object> entryOne = map.newEntry(keyOne, hashOne, null); in testCopyEntry()
454 ReferenceEntry<Object, Object> entryTwo = map.newEntry(keyTwo, hashTwo, entryOne); in testCopyEntry()
464 ReferenceEntry<Object, Object> copyOne = map.copyEntry(entryOne, null); in testCopyEntry()
471 ReferenceEntry<Object, Object> copyTwo = map.copyEntry(entryTwo, copyOne); in testCopyEntry()
481 MapMakerInternalMap<K, V> map, ReferenceEntry<K, V> one, ReferenceEntry<K, V> two) { in assertConnected()
499 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testSegmentGetAndContains()
[all …]
DComputingConcurrentHashMapTest.java31 import com.google.common.collect.MapMakerInternalMap.ReferenceEntry;
111 List<ReferenceEntry<Object, Object>> writeOrder = Lists.newLinkedList(); in testRecordReadOnCompute()
112 List<ReferenceEntry<Object, Object>> readOrder = Lists.newLinkedList(); in testRecordReadOnCompute()
118 ReferenceEntry<Object, Object> entry = segment.getEntry(key, hash); in testRecordReadOnCompute()
129 List<ReferenceEntry<Object, Object>> reads = Lists.newArrayList(); in testRecordReadOnCompute()
130 Iterator<ReferenceEntry<Object, Object>> i = readOrder.iterator(); in testRecordReadOnCompute()
132 ReferenceEntry<Object, Object> entry = i.next(); in testRecordReadOnCompute()
168 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testComputePartiallyCollectedKey()
197 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testComputePartiallyCollectedValue()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java28 import com.google.common.cache.LocalCache.ReferenceEntry;
66 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key); in simulateValueReclamation()
85 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key); in simulateKeyReclamation()
94 static <K, V> ReferenceEntry<K, V> getReferenceEntry(Cache<K, V> cache, K key) { in getReferenceEntry()
227 Set<ReferenceEntry<?, ?>> entries = Sets.newIdentityHashSet(); in checkExpiration()
229 ReferenceEntry<?, ?> prev = null; in checkExpiration()
230 for (ReferenceEntry<?, ?> current : segment.writeQueue) { in checkExpiration()
249 Set<ReferenceEntry<?, ?>> entries = Sets.newIdentityHashSet(); in checkExpiration()
251 ReferenceEntry<?, ?> prev = null; in checkExpiration()
252 for (ReferenceEntry<?, ?> current : segment.accessQueue) { in checkExpiration()
[all …]
DLocalCacheTest.java40 import com.google.common.cache.LocalCache.ReferenceEntry;
454 List<ReferenceEntry<Object, Object>> writeOrder = Lists.newLinkedList(); in testRecordReadOnCompute()
455 List<ReferenceEntry<Object, Object>> readOrder = Lists.newLinkedList(); in testRecordReadOnCompute()
461 ReferenceEntry<Object, Object> entry = segment.getEntry(key, hash); in testRecordReadOnCompute()
472 List<ReferenceEntry<Object, Object>> reads = Lists.newArrayList(); in testRecordReadOnCompute()
473 Iterator<ReferenceEntry<Object, Object>> i = readOrder.iterator(); in testRecordReadOnCompute()
475 ReferenceEntry<Object, Object> entry = i.next(); in testRecordReadOnCompute()
510 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testComputePartiallyCollectedKey()
539 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testComputePartiallyCollectedValue()
610 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testCopyEntry_computing()
[all …]
DCacheEvictionTest.java25 import com.google.common.cache.LocalCache.ReferenceEntry;
154 new Receiver<ReferenceEntry<Integer, Integer>>() { in testUpdateRecency_onGet()
156 public void accept(ReferenceEntry<Integer, Integer> entry) { in testUpdateRecency_onGet()
169 new Receiver<ReferenceEntry<Integer, Integer>>() { in testUpdateRecency_onInvalidate()
171 public void accept(ReferenceEntry<Integer, Integer> entry) { in testUpdateRecency_onInvalidate()
/external/guava/guava-tests/benchmark/com/google/common/cache/
DChainBenchmark.java22 import com.google.common.cache.LocalCache.ReferenceEntry;
35 private ReferenceEntry<Object, Object> head;
36 private ReferenceEntry<Object, Object> chain;
DSegmentBenchmark.java24 import com.google.common.cache.LocalCache.ReferenceEntry;
57 AtomicReferenceArray<ReferenceEntry<Object, Object>> oldTable = segment.table; in time()