-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address classloader leak in a recently-introduced ClassValueCache
Root cause: Cached in ClassValue values are prohibited to reference any java.lang.Class or ClassValue instances as they are considered as strong roots that prevent Class and ClassValue garbage collection, creating effectively unloadable cycle. This problem is also known as JDK-8136353. Actions taken: * Extract anonymous ClassValue instance into a separate static class that does not capture anything implicitly * Wrap cached values in ClassValue into SoftReference to avoid unloadable cycles ^KT-56093 Fixed
- Loading branch information
1 parent
46ddcac
commit 08dd52f
Showing
1 changed file
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters