Changeset 12954
- Timestamp:
- 10/07/10 22:35:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/StandardGenericFunction.java
r12898 r12954 36 36 import static org.armedbear.lisp.Lisp.*; 37 37 38 import java.util. HashMap;38 import java.util.concurrent.ConcurrentHashMap; 39 39 40 40 public final class StandardGenericFunction extends StandardObject … … 44 44 int numberOfRequiredArgs; 45 45 46 HashMap<CacheEntry,LispObject> cache;47 HashMap<LispObject,LispObject> slotCache;46 ConcurrentHashMap<CacheEntry,LispObject> cache; 47 ConcurrentHashMap<LispObject,LispObject> slotCache; 48 48 49 49 public StandardGenericFunction() … … 582 582 } 583 583 CacheEntry specializations = new CacheEntry(array); 584 HashMap<CacheEntry,LispObject> ht = gf.cache;584 ConcurrentHashMap<CacheEntry,LispObject> ht = gf.cache; 585 585 if (ht == null) 586 ht = gf.cache = new HashMap<CacheEntry,LispObject>();586 ht = gf.cache = new ConcurrentHashMap<CacheEntry,LispObject>(); 587 587 ht.put(specializations, third); 588 588 return third; … … 607 607 } 608 608 CacheEntry specializations = new CacheEntry(array); 609 HashMap<CacheEntry,LispObject> ht = gf.cache;609 ConcurrentHashMap<CacheEntry,LispObject> ht = gf.cache; 610 610 if (ht == null) 611 611 return NIL; … … 706 706 LispObject layout = second; 707 707 LispObject location = third; 708 HashMap<LispObject,LispObject> ht = gf.slotCache;708 ConcurrentHashMap<LispObject,LispObject> ht = gf.slotCache; 709 709 if (ht == null) 710 ht = gf.slotCache = new HashMap<LispObject,LispObject>();710 ht = gf.slotCache = new ConcurrentHashMap<LispObject,LispObject>(); 711 711 ht.put(layout, location); 712 712 return third; … … 724 724 final StandardGenericFunction gf = checkStandardGenericFunction(first); 725 725 LispObject layout = second; 726 HashMap<LispObject,LispObject> ht = gf.slotCache;726 ConcurrentHashMap<LispObject,LispObject> ht = gf.slotCache; 727 727 if (ht == null) 728 728 return NIL;
Note: See TracChangeset
for help on using the changeset viewer.