groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [3/3] groovy git commit: Use same class cache(i.e. `UnlimitedConcurrentCache`) with master
Date Fri, 01 Jun 2018 05:09:30 GMT
Use same class cache(i.e. `UnlimitedConcurrentCache`) with master

(cherry picked from commit 251d8a4)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/9974890c
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/9974890c
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/9974890c

Branch: refs/heads/GROOVY_2_5_X
Commit: 9974890caeb3d572b48fd9bf04ab47cb9401020e
Parents: 5d87c85
Author: sunlan <sunlan@apache.org>
Authored: Fri Jun 1 13:07:09 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Fri Jun 1 13:08:43 2018 +0800

----------------------------------------------------------------------
 src/main/groovy/groovy/lang/GroovyClassLoader.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/9974890c/src/main/groovy/groovy/lang/GroovyClassLoader.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/groovy/lang/GroovyClassLoader.java b/src/main/groovy/groovy/lang/GroovyClassLoader.java
index 8b46206..616ceb1 100644
--- a/src/main/groovy/groovy/lang/GroovyClassLoader.java
+++ b/src/main/groovy/groovy/lang/GroovyClassLoader.java
@@ -45,6 +45,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods;
 import org.codehaus.groovy.runtime.InvokerHelper;
 import org.codehaus.groovy.runtime.memoize.ConcurrentCommonCache;
 import org.codehaus.groovy.runtime.memoize.EvictableCache;
+import org.codehaus.groovy.runtime.memoize.UnlimitedConcurrentCache;
 import org.codehaus.groovy.util.URLStreams;
 import org.objectweb.asm.ClassVisitor;
 import org.objectweb.asm.ClassWriter;
@@ -90,7 +91,7 @@ public class GroovyClassLoader extends URLClassLoader {
     /**
      * this cache contains the loaded classes or PARSING, if the class is currently parsed
      */
-    protected final Map<String, Class> classCache = new ConcurrentCommonCache<String,
Class>();
+    protected final Map<String, Class> classCache = new UnlimitedConcurrentCache<String,
Class>();
 
     /**
      * This cache contains mappings of file name to class. It is used


Mime
View raw message