Searched refs:recencyQueue (Results 1 – 7 of 7) sorted by relevance
1194 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()1201 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1206 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1209 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1219 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()1226 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1231 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1235 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testDrainRecencyQueueOnRead()1243 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1248 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()[all …]
125 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()137 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()140 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()
301 assertTrue(segment.recencyQueue.isEmpty()); in testAsMapRecency()303 assertSame(one, segment.recencyQueue.peek().getKey()); in testAsMapRecency()305 assertFalse(segment.recencyQueue.isEmpty()); in testAsMapRecency()
468 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()480 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()483 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()1875 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnWrite()1882 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1887 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1890 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnWrite()1900 if (segment.recencyQueue != DISCARDING_QUEUE) { in testDrainRecencyQueueOnRead()1907 assertTrue(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()1912 assertFalse(segment.recencyQueue.isEmpty()); in testDrainRecencyQueueOnRead()[all …]
289 assertEquals(0, segment.recencyQueue.size());307 assertEquals(0, segment.recencyQueue.size());
2068 final Queue<ReferenceEntry<K, V>> recencyQueue; field in MapMakerInternalMap.Segment2101 recencyQueue = (map.evictsBySize() || map.expiresAfterAccess()) in Segment()2255 recencyQueue.add(entry); in recordRead()2303 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()
2064 final Queue<ReferenceEntry<K, V>> recencyQueue; field in LocalCache.Segment2102 recencyQueue = map.usesAccessQueue() in Segment()2544 recencyQueue.add(entry); in recordRead()2591 while ((e = recencyQueue.poll()) != null) { in drainRecencyQueue()