Daniel Sun created GROOVY-11240: ----------------------------------- Summary: Tweak cleanup DFA cache of parser Key: GROOVY-11240 URL: https://issues.apache.org/jira/browse/GROOVY-11240 Project: Groovy Issue Type: Improvement Reporter: Daniel Sun Assignee: Daniel Sun Fix For: 5.0.0-alpha-4
We should keep the DFA cache as possible as we could, but the DFA cache is very huge and results in OOM. Our current solution is to set a threshold to cleanup DFA cache, but the threshold is hard for users to evaluate reasonable value. The new solution relies on GC, if the object referenced by soft reference is collected by GC, we trigger the cleanup of DFA cache. We just need set the threshold to {{0}} to enable the smart cleanup. For better compatibility, we keep the existing cleanup as it is. -- This message was sent by Atlassian Jira (v8.20.10#820010)