Home
last modified time | relevance | path

Searched refs:LocalCache (Results 1 – 20 of 20) sorted by relevance

/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java27 import com.google.common.cache.LocalCache.LocalLoadingCache;
28 import com.google.common.cache.LocalCache.ReferenceEntry;
29 import com.google.common.cache.LocalCache.Segment;
30 import com.google.common.cache.LocalCache.ValueReference;
97 LocalCache<K, V> map = toLocalCache(cache); in getReferenceEntry()
108 LocalCache<K, V> map = toLocalCache(cache); in forceExpandSegment()
118 static <K, V> LocalCache<K, V> toLocalCache(Cache<K, V> cache) { in toLocalCache()
136 LocalCache<?, ?> map = toLocalCache(cache); in drainRecencyQueues()
158 static void drainReferenceQueues(LocalCache<?, ?> cchm) { in drainReferenceQueues() argument
159 for (LocalCache.Segment<?, ?> segment : cchm.segments) { in drainReferenceQueues()
[all …]
DLocalCacheTest.java20 import static com.google.common.cache.LocalCache.DISCARDING_QUEUE;
21 import static com.google.common.cache.LocalCache.DRAIN_THRESHOLD;
22 import static com.google.common.cache.LocalCache.nullEntry;
23 import static com.google.common.cache.LocalCache.unset;
36 import com.google.common.cache.LocalCache.EntryFactory;
37 import com.google.common.cache.LocalCache.LoadingValueReference;
38 import com.google.common.cache.LocalCache.LocalLoadingCache;
39 import com.google.common.cache.LocalCache.LocalManualCache;
40 import com.google.common.cache.LocalCache.ReferenceEntry;
41 import com.google.common.cache.LocalCache.Segment;
[all …]
DPackageSanityTests.java33 setDefault(LocalCache.class, new LocalCache<Object, Object>(CacheBuilder.newBuilder(), null)); in PackageSanityTests()
DCacheReferencesTest.java17 import static com.google.common.cache.LocalCache.Strength.STRONG;
22 import com.google.common.cache.LocalCache.Strength;
DCacheBuilderTest.java88 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testInitialCapacity_small()
102 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testInitialCapacity_smallest()
140 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testConcurrencyLevel_small()
608 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testSizingDefaults()
DLocalLoadingCacheTest.java24 import com.google.common.cache.LocalCache.LocalLoadingCache;
25 import com.google.common.cache.LocalCache.Segment;
DCacheBuilderFactory.java22 import com.google.common.cache.LocalCache.Strength;
DCacheEvictionTest.java25 import com.google.common.cache.LocalCache.ReferenceEntry;
DEmptyCachesTest.java25 import com.google.common.cache.LocalCache.Strength;
DPopulatedCachesTest.java26 import com.google.common.cache.LocalCache.Strength;
DCacheBuilderSpecTest.java23 import com.google.common.cache.LocalCache.Strength;
DCacheLoadingTest.java71 LocalCache.logger.addHandler(logHandler); in setUp()
79 LocalCache.logger.removeHandler(logHandler); in tearDown()
/external/guava/guava-tests/benchmark/com/google/common/cache/
DChainBenchmark.java22 import com.google.common.cache.LocalCache.ReferenceEntry;
23 import com.google.common.cache.LocalCache.Segment;
40 LocalCache<Object, Object> cache = new LocalCache<Object, Object>( in setUp()
DSegmentBenchmark.java24 import com.google.common.cache.LocalCache.ReferenceEntry;
25 import com.google.common.cache.LocalCache.Segment;
42 LocalCache<Object, Object> cache = new LocalCache<Object, Object>( in setUp()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DLocalCache.java53 public class LocalCache<K, V> implements ConcurrentMap<K, V> { class
64 LocalCache(CacheBuilder<? super K, ? super V> builder, CacheLoader<? super K, V> loader) { in LocalCache() method in LocalCache
348 final LocalCache<K, V> localCache;
356 this.localCache = new LocalCache<K, V>(builder, loader); in LocalManualCache()
546 this.iterator = LocalCache.this.cachingHashMap.entrySet().iterator(); in EntryIterator()
582 LocalCache.this.remove(lastEntry.getKey(), lastEntry.getValue()); in remove()
814 V v = LocalCache.this.get(key); in contains()
826 return (key != null) && LocalCache.this.remove(key, e.getValue()); in remove()
DCacheBuilder.java32 import com.google.common.cache.LocalCache.Strength;
544 return new LocalCache.LocalLoadingCache<K1, V1>(this, loader); in build()
562 return new LocalCache.LocalManualCache<K1, V1>(this); in build()
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp736 MemDepResult &LocalCache = LocalDeps[QueryInst]; in getDependency() local
740 if (!LocalCache.isDirty()) in getDependency()
741 return LocalCache; in getDependency()
745 if (Instruction *Inst = LocalCache.getInst()) { in getDependency()
758 LocalCache = MemDepResult::getNonLocal(); in getDependency()
760 LocalCache = MemDepResult::getNonFuncLocal(); in getDependency()
770 LocalCache = getPointerDependencyFrom( in getDependency()
775 LocalCache = getCallSiteDependencyFrom( in getDependency()
779 LocalCache = MemDepResult::getUnknown(); in getDependency()
783 if (Instruction *I = LocalCache.getInst()) in getDependency()
[all …]
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java34 import com.google.common.cache.LocalCache.Strength;
789 return new LocalCache.LocalLoadingCache<K1, V1>(this, loader); in build()
807 return new LocalCache.LocalManualCache<K1, V1>(this); in build()
DLocalCache.java96 class LocalCache<K, V> extends AbstractMap<K, V> implements ConcurrentMap<K, V> { class
157 static final Logger logger = Logger.getLogger(LocalCache.class.getName());
235 LocalCache( in LocalCache() method in LocalCache
253 ? LocalCache.<RemovalNotification<K, V>>discardingQueue() in LocalCache()
2010 final LocalCache<K, V> map;
2089 Segment(LocalCache<K, V> map, int initialCapacity, long maxSegmentWeight, in Segment()
2104 : LocalCache.<ReferenceEntry<K, V>>discardingQueue(); in Segment()
2108 : LocalCache.<ReferenceEntry<K, V>>discardingQueue(); in Segment()
2112 : LocalCache.<ReferenceEntry<K, V>>discardingQueue(); in Segment()
3474 this(LocalCache.<K, V>unset()); in LoadingValueReference()
[all …]
DCacheBuilderSpec.java26 import com.google.common.cache.LocalCache.Strength;