paulk-asert commented on code in PR #2868:
URL: https://github.com/apache/groovy/pull/2868#discussion_r3930079310
##########
subprojects/groovy-servlet/src/main/java/groovy/servlet/TemplateServlet.java:
##########
@@ -187,7 +187,7 @@ public String toString() {
* Create new TemplateServlet.
*/
public TemplateServlet() {
- this.cache = new WeakHashMap<String, TemplateCacheEntry>();
+ this.cache = new ConcurrentHashMap<String, TemplateCacheEntry>();
Review Comment:
Updated to use `SoftReference`s. Also considered Weak and
ConcurrentSoftCache but the soft references seemed best.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]