1
0

Use a weak reference for the cached class loader (#71)

This replaces the strong reference to the class loader, `thisClassLoader`,
with a weak one.

The strong ref shows up as causing a GC root after unloading a web app in Tomcat that uses this library.
With these modifications, the GC root is gone...
This commit is contained in:
Jakob van Kruijssen
2022-01-05 15:35:08 +01:00
committed by GitHub
parent 9466284235
commit e7b328d7e0
4 changed files with 165 additions and 12 deletions

View File

@@ -100,7 +100,7 @@
<property name="component.title" value="Logging Wrapper Library"/>
<!-- The current version number of this component -->
<property name="component.version" value="1.1.1-SNAPSHOT"/>
<property name="component.version" value="1.2.1-SNAPSHOT"/>
<!-- The base directory for compilation targets -->
<property name="build.home" value="${basedir}/target"/>