int expired = 0;
long expirationTime = System.currentTimeMillis() - expirationAge;
for (int i = 0; i < CONCURRENCY_LEVEL; i++) {
RWLock lock = locks[i];
if (!lock.lockWrite(lockWaitTime)) {
log.debug("Could not lock segment " + i + " for cleanup");
continue;
}
try {