From caf8960e2b98d6bbd4e5ade65f05e128c240ddc3 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 28 Feb 2008 20:50:38 +0000 Subject: [PATCH] 220686: wrapped weakhashmap --- weaver/src/org/aspectj/weaver/World.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/World.java b/weaver/src/org/aspectj/weaver/World.java index 53177ab45..bb0cd0b48 100644 --- a/weaver/src/org/aspectj/weaver/World.java +++ b/weaver/src/org/aspectj/weaver/World.java @@ -18,6 +18,7 @@ import java.lang.ref.ReferenceQueue; import java.lang.ref.SoftReference; import java.lang.ref.WeakReference; import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; @@ -856,7 +857,7 @@ public abstract class World implements Dump.INode { private Map /* String -> ResolvedType */ tMap = new HashMap(); // Map of types that may be ejected from the cache if we need space - private Map expendableMap = new WeakHashMap(); + private Map expendableMap = Collections.synchronizedMap(new WeakHashMap()); private World w; -- 2.39.5