projects
/
org.ibex.util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cd0176c
)
make cache pointer arrays large enough to match hash
author
crawshaw
<crawshaw@ibex.org>
Sat, 8 Jan 2005 09:59:27 +0000
(09:59 +0000)
committer
crawshaw
<crawshaw@ibex.org>
Sat, 8 Jan 2005 09:59:27 +0000
(09:59 +0000)
darcs-hash:
20050108095927
-2eb37-
20b657927d859d6e1a3a66d894dd5e696cc3ed1d
.gz
src/org/ibex/util/Cache.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/util/Cache.java
b/src/org/ibex/util/Cache.java
index
3662cf3
..
dc903b8
100644
(file)
--- a/
src/org/ibex/util/Cache.java
+++ b/
src/org/ibex/util/Cache.java
@@
-23,8
+23,8
@@
public class Cache extends Basket.HashMap {
public Cache(int maxSize, boolean accessOrder) {
super(maxSize * 2, 0.75F);
- prev = new int[maxSize];
- next = new int[maxSize];
+ prev = new int[entries.length];
+ next = new int[entries.length];
for (int i=0; i < maxSize; i++) { prev[i] = next[i] = -1; }
this.maxSize = maxSize;