Backported r650989 to trunk.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666890 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-06-11 23:20:27 +00:00
parent b589da8070
commit 4d668a44dd
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ import org.apache.openjpa.lib.util.LRUMap;
import org.apache.openjpa.lib.util.ReferenceHashMap;
import org.apache.openjpa.lib.util.ReferenceMap;
import org.apache.openjpa.lib.util.SizedMap;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashMap;
import org.apache.openjpa.lib.util.concurrent.NullSafeConcurrentHashMap;
import org.apache.openjpa.lib.util.concurrent.SizedConcurrentHashMap;
import java.util.concurrent.locks.ReentrantLock;
@ -114,7 +114,7 @@ public class CacheMap
softMapValueExpired(key);
}
};
pinnedMap = new ConcurrentHashMap();
pinnedMap = new NullSafeConcurrentHashMap();
if (!lru) {
cacheMap = new SizedConcurrentHashMap(size, load, concurrencyLevel){