projects
/
nestedvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make jdk 1.1 compliant part 1
[nestedvm.git]
/
src
/
org
/
ibex
/
nestedvm
/
util
/
InodeCache.java
diff --git
a/src/org/ibex/nestedvm/util/InodeCache.java
b/src/org/ibex/nestedvm/util/InodeCache.java
index
c4cedb9
..
cb1d7f0
100644
(file)
--- a/
src/org/ibex/nestedvm/util/InodeCache.java
+++ b/
src/org/ibex/nestedvm/util/InodeCache.java
@@
-37,12
+37,14
@@
public class InodeCache {
clear();
}
clear();
}
+ private static void fill(Object[] a,Object o) { for(int i=0;i<a.length;i++) a[i] = o; }
+ private static void fill(short[] a, short s) { for(int i=0;i<a.length;i++) a[i] = s; }
public final void clear() {
size = usedSlots = 0;
mru = lru = -1;
public final void clear() {
size = usedSlots = 0;
mru = lru = -1;
- Arrays.fill(keys,null);
- Arrays.fill(inodes,SHORT_NULL);
- Arrays.fill(reverse,SHORT_NULL);
+ fill(keys,null);
+ fill(inodes,SHORT_NULL);
+ fill(reverse,SHORT_NULL);
}
public final short get(Object key) {
}
public final short get(Object key) {