|
|
@ -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();
|
|
|
@ -350,6 +351,7 @@ public final class plasmaHTCache {
|
|
|
|
iter.remove();
|
|
|
|
iter.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void cleanup() {
|
|
|
|
private void cleanup() {
|
|
|
|
// clean up cache to have 4% (enough) space for next entries
|
|
|
|
// clean up cache to have 4% (enough) space for next entries
|
|
|
|