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

Method postReadCleanup

output/java_guava/1.4.19/LocalCache.java:3488–3492  ·  view source on GitHub ↗

Performs routine cleanup following a read. Normally cleanup happens during writes. If cleanup is not observed after a sufficient number of reads, try cleaning up from the read thread.

()

Source from the content-addressed store, hash-verified

3486 */
3487
3488 void postReadCleanup() {
3489 if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) {
3490 cleanUp();
3491 }
3492 }
3493
3494 /**
3495 * Performs routine cleanup prior to executing a write. This should be called every time a write

Callers 5

getMethod · 0.95
containsKeyMethod · 0.95
containsValueMethod · 0.95
advanceToMethod · 0.45
getOrComputeMethod · 0.45

Calls 2

cleanUpMethod · 0.95
incrementAndGetMethod · 0.45

Tested by

no test coverage detected