Searched refs:recencyQueue (Results 1 – 7 of 7) sorted by relevance
1220 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()1227 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1232 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1235 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1245 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()1252 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1257 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1261 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()1269 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1274 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()[all …]
129 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()141 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()144 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()
274 assertTrue(segment.recencyQueue.isEmpty()); in testAsMapRecency()276 assertSame(one, segment.recencyQueue.peek().getKey()); in testAsMapRecency()278 assertFalse(segment.recencyQueue.isEmpty()); in testAsMapRecency()
434 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()446 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()449 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()1788 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()1795 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1800 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1803 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1813 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()1820 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1825 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()[all …]
284 assertEquals(0, segment.recencyQueue.size());302 assertEquals(0, segment.recencyQueue.size());
2118 final Queue<ReferenceEntry<K, V>> recencyQueue; field in MapMakerInternalMap.Segment2151 recencyQueue = (map.evictsBySize() || map.expiresAfterAccess()) in Segment()2290 recencyQueue.add(entry); in recordRead()2338 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()
2112 final Queue<ReferenceEntry<K, V>> recencyQueue; field in LocalCache.Segment2150 recencyQueue = map.usesAccessQueue() in Segment()2572 recencyQueue.add(entry); in recordRead()2619 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()