Home
last modified time | relevance | path

Searched refs:DRAIN_THRESHOLD (Results 1 – 5 of 5) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java21 import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD;
58 static final int SMALL_MAX_SIZE = DRAIN_THRESHOLD * 5;
1203 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnWrite()
1228 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1233 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1235 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1240 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1245 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1252 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1264 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testRecordRead()
[all …]
DComputingConcurrentHashMapTest.java19 import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD;
137 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
/external/guava/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java21 import static com.google.common.cache.LocalCache.DRAIN_THRESHOLD;
107 static final int SMALL_MAX_SIZE = DRAIN_THRESHOLD * 5;
480 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
1884 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnWrite()
1909 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1914 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1916 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1921 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1926 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1933 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
[all …]
/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java122 static final int DRAIN_THRESHOLD = 0x3F; field in MapMakerInternalMap
3049 if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) { in postReadCleanup()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java146 static final int DRAIN_THRESHOLD = 0x3F; field in LocalCache
3416 if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) { in postReadCleanup()