Java-Runtime-Compiler icon indicating copy to clipboard operation
Java-Runtime-Compiler copied to clipboard

Class unloading issue

Open kimec opened this issue 8 months ago • 0 comments

Even though the compiler is using WeakHashMap, class unloading does not work due to the circular dependency between the key - class loader and the value - the class.

PR #135 addresses the issue by wrapping the class with WeakReference. I have also added a test that triggers class unloading to prove wrapping the class was enough to make the GC reclaim it.

kimec avatar Jun 10 '24 15:06 kimec