Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.5.7
-
None
-
None
Description
when executing a script like
1000000.times { def shell = new GroovyShell() def object = shell.evaluate("new Object()") }
then a profiler will show, that the WeakDoubleKeyHashmap inner class instances for for example Entry do increase all the time. The reason behind this is, that the map does not call expungeStallEntries() if not either the method size() or remove are called. The additional amount of memory per iteration is quite small, but over time it will cause a problem.