* Use new WeakCacheMap class for wrapper cache.
This commit is contained in:
parent
a90c2e6615
commit
820342fc6e
1 changed files with 2 additions and 2 deletions
|
@ -27,6 +27,7 @@ import helma.scripting.*;
|
||||||
import helma.util.CacheMap;
|
import helma.util.CacheMap;
|
||||||
import helma.util.SystemMap;
|
import helma.util.SystemMap;
|
||||||
import helma.util.WrappedMap;
|
import helma.util.WrappedMap;
|
||||||
|
import helma.util.WeakCacheMap;
|
||||||
import org.mozilla.javascript.*;
|
import org.mozilla.javascript.*;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
@ -75,8 +76,7 @@ public final class RhinoCore implements ScopeProvider {
|
||||||
*/
|
*/
|
||||||
public RhinoCore(Application app) {
|
public RhinoCore(Application app) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
// wrappercache = new CacheMap(500, .75f);
|
wrappercache = new WeakCacheMap(500);
|
||||||
wrappercache = new CacheMap(500);
|
|
||||||
prototypes = new Hashtable();
|
prototypes = new Hashtable();
|
||||||
|
|
||||||
Context context = Context.enter();
|
Context context = Context.enter();
|
||||||
|
|
Loading…
Add table
Reference in a new issue