Re: Type for GroovyClassLoader#sourceCache

2025-01-24 Thread Daniel Sun
AFAIR, deadlock is due to that StampedLock is not re-entrant. We can use ReentrantReadWriteLock to avoid deadlock. Cheers, Daniel Sun On 2025/01/24 04:48:48 Paul King wrote: > Hi folks, I am wondering whether the type for sourceCache in > GroovyClassLoader should be hard-coded as the concrete t

Type for GroovyClassLoader#sourceCache

2025-01-23 Thread Paul King
Hi folks, I am wondering whether the type for sourceCache in GroovyClassLoader should be hard-coded as the concrete type StampedCommonCache but instead be the interface EvictableCache? https://github.com/apache/groovy/blob/master/src/main/java/groovy/lang/GroovyClassLoader.java#L102 This would le