chenxiaojie created GROOVY-7913: ----------------------------------- Summary: ClassInfo.globalClassValue lead to GroovyClassLoader unload classes Key: GROOVY-7913 URL: https://issues.apache.org/jira/browse/GROOVY-7913 Project: Groovy Issue Type: Bug Components: class generator Affects Versions: 2.4.6 Reporter: chenxiaojie
org.codehaus.groovy.reflection.ClassInfo: private static final GroovyClassValue<ClassInfo> globalClassValue = GroovyClassValueFactory.createGroovyClassValue(new ComputeValue<ClassInfo>(){ @Override public ClassInfo computeValue(Class<?> type) { ClassInfo ret = new ClassInfo(type); globalClassSet.add(ret); return ret; } }); dynamic load groovy classes will be cached in globalClassValue can't unload classes cause java.lang.OutOfMemoryError: PermGen space -- This message was sent by Atlassian JIRA (v6.3.4#6332)