Skip to content

Cleanups around caching of classpath/classloaders#8021

Merged
retronym merged 2 commits intoscala:2.12.xfrom
retronym:topic/classloader-cache-cleanup
May 9, 2019
Merged

Cleanups around caching of classpath/classloaders#8021
retronym merged 2 commits intoscala:2.12.xfrom
retronym:topic/classloader-cache-cleanup

Conversation

@retronym
Copy link
Member

@retronym retronym commented May 3, 2019

Improve timer-based eviction of classloader caches

Cancel in-progress timer task on a cache hit. This avoids reducing the
effective deferred close delay when the old timer task fires and sees a ref
count of zero, even though the ref count has since been positive.

Remove unused, duplicated copy of findMacroClassLoader

@scala-jenkins scala-jenkins added this to the 2.12.9 milestone May 3, 2019
@dwijnand
Copy link
Member

dwijnand commented May 3, 2019

Kind of surprising to see you use pattern matching over ne null 🙂

retronym added 2 commits May 7, 2019 11:47
Cancel in-progress timer task on a cache hit. This avoids
reducing the effective deferred close delay when the old
timer task fires and sees a ref count of zero, even though
the ref count has since been positive.
@retronym retronym force-pushed the topic/classloader-cache-cleanup branch from 7b628db to e4406b9 Compare May 7, 2019 01:48
@retronym
Copy link
Member Author

retronym commented May 7, 2019

/cc @smarter

@retronym retronym merged commit 3e468a0 into scala:2.12.x May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants