提交 1f5b62d4 authored 作者: Thomas Mueller's avatar Thomas Mueller

Some internal caches did not use the LRU mechanism.

上级 3d40aad2
...@@ -47,6 +47,7 @@ public class FileObjectMemory implements FileObject { ...@@ -47,6 +47,7 @@ public class FileObjectMemory implements FileObject {
private int size; private int size;
Cache(int size) { Cache(int size) {
super(size, (float) 0.75, true);
this.size = size; this.size = size;
} }
......
...@@ -30,6 +30,7 @@ extends HashMap ...@@ -30,6 +30,7 @@ extends HashMap
private int size; private int size;
public SmallLRUCache(int size) { public SmallLRUCache(int size) {
super(size, (float) 0.75, true);
this.size = size; this.size = size;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论