|
|
@ -328,6 +328,7 @@ public final class plasmaHTCache {
|
|
|
|
|
|
|
|
|
|
|
|
private void cleanupDoIt(long newCacheSize) {
|
|
|
|
private void cleanupDoIt(long newCacheSize) {
|
|
|
|
File obj;
|
|
|
|
File obj;
|
|
|
|
|
|
|
|
synchronized (cacheAge) {
|
|
|
|
Iterator iter = this.cacheAge.keySet().iterator();
|
|
|
|
Iterator iter = this.cacheAge.keySet().iterator();
|
|
|
|
while (iter.hasNext() && this.curCacheSize >= newCacheSize) {
|
|
|
|
while (iter.hasNext() && this.curCacheSize >= newCacheSize) {
|
|
|
|
Object key = iter.next();
|
|
|
|
Object key = iter.next();
|
|
|
@ -349,6 +350,7 @@ public final class plasmaHTCache {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iter.remove();
|
|
|
|
iter.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void cleanup() {
|
|
|
|
private void cleanup() {
|
|
|
|