Changeset 14491
- Timestamp:
- 05/05/13 12:16:07 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/StandardGenericFunction.java
r14490 r14491 41 41 { 42 42 43 ConcurrentHashMap<CacheEntry,LispObject> cache; 43 ConcurrentHashMap<CacheEntry,LispObject> cache 44 = new ConcurrentHashMap<CacheEntry,LispObject>();; 44 45 45 46 public StandardGenericFunction() … … 67 68 void clearCache() 68 69 { 69 cache = n ull;70 cache = new ConcurrentHashMap<CacheEntry,LispObject>(); 70 71 } 71 72 … … 160 161 CacheEntry specializations = new CacheEntry(array); 161 162 ConcurrentHashMap<CacheEntry,LispObject> ht = gf.cache; 162 if (ht == null)163 ht = gf.cache = new ConcurrentHashMap<CacheEntry,LispObject>();164 163 ht.put(specializations, third); 165 164 return third; … … 191 190 CacheEntry specializations = new CacheEntry(array); 192 191 ConcurrentHashMap<CacheEntry,LispObject> ht = gf.cache; 193 if (ht == null)194 return NIL;195 192 LispObject emf = (LispObject) ht.get(specializations); 196 193 return emf != null ? emf : NIL;
Note: See TracChangeset
for help on using the changeset viewer.