From 820342fc6eaee5e505e557dcac8b2647333a3153 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 3 Apr 2006 13:27:46 +0000 Subject: [PATCH] * Use new WeakCacheMap class for wrapper cache. --- src/helma/scripting/rhino/RhinoCore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/scripting/rhino/RhinoCore.java b/src/helma/scripting/rhino/RhinoCore.java index 91096cbf..ff8bf613 100644 --- a/src/helma/scripting/rhino/RhinoCore.java +++ b/src/helma/scripting/rhino/RhinoCore.java @@ -27,6 +27,7 @@ import helma.scripting.*; import helma.util.CacheMap; import helma.util.SystemMap; import helma.util.WrappedMap; +import helma.util.WeakCacheMap; import org.mozilla.javascript.*; import java.io.*; @@ -75,8 +76,7 @@ public final class RhinoCore implements ScopeProvider { */ public RhinoCore(Application app) { this.app = app; - // wrappercache = new CacheMap(500, .75f); - wrappercache = new CacheMap(500); + wrappercache = new WeakCacheMap(500); prototypes = new Hashtable(); Context context = Context.enter();