(long now)
| 3502 | |
| 3503 | |
| 3504 | void runLockedCleanup(long now) { |
| 3505 | if (tryLock()) { |
| 3506 | try { |
| 3507 | drainReferenceQueues(); |
| 3508 | expireEntries(now); // calls drainRecencyQueue |
| 3509 | readCount.set(0); |
| 3510 | } finally { |
| 3511 | unlock(); |
| 3512 | } |
| 3513 | } |
| 3514 | } |
| 3515 | |
| 3516 | |
| 3517 | void runUnlockedCleanup() { |
no test coverage detected