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;
1229 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnWrite()
1254 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1259 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1261 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1266 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1271 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1278 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1290 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testRecordRead()
[all …]
DComputingConcurrentHashMapTest.java19 import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD;
141 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;
78 static final int SMALL_MAX_SIZE = DRAIN_THRESHOLD * 5;
446 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
1797 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnWrite()
1822 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1827 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1829 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
1834 for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) { in testDrainRecencyQueueOnRead()
1839 for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) { in testDrainRecencyQueueOnRead()
1846 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()
[all …]
/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java123 static final int DRAIN_THRESHOLD = 0x3F; field in MapMakerInternalMap
3094 if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) { in postReadCleanup()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java142 static final int DRAIN_THRESHOLD = 0x3F; field in LocalCache
3446 if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) { in postReadCleanup()