MCPcopy Create free account
hub / github.com/antlr/codebuff / expireEntries

Method expireEntries

output/java_guava/1.4.19/LocalCache.java:2711–2726  ·  view source on GitHub ↗
(long now)

Source from the content-addressed store, hash-verified

2709 }
2710
2711 @GuardedBy("this")
2712 void expireEntries(long now) {
2713 drainRecencyQueue();
2714 ReferenceEntry<K, V> e;
2715 while ((e = writeQueue.peek()) != null && map.isExpired(e, now)) {
2716 if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) {
2717 throw new AssertionError();
2718 }
2719 }
2720
2721 while ((e = accessQueue.peek()) != null && map.isExpired(e, now)) {
2722 if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) {
2723 throw new AssertionError();
2724 }
2725 }
2726 }
2727
2728 // eviction
2729

Callers 2

tryExpireEntriesMethod · 0.95
runLockedCleanupMethod · 0.95

Calls 5

drainRecencyQueueMethod · 0.95
removeEntryMethod · 0.95
peekMethod · 0.65
getHashMethod · 0.65
isExpiredMethod · 0.45

Tested by

no test coverage detected