moditect / layrry

A Runner and API for Layered Java Applications
Apache License 2.0
335 stars 33 forks source link

Raise warning in case CL of removed plug-in does not get GC'ed #56

Open gunnarmorling opened 4 years ago

gunnarmorling commented 4 years ago

The idea would be to keep a WeakReference for the class loader of each plug-in. If a plug-in gets removed, and this weak reference does not get enqeued after some time, that's an indicator that there's still strong reference to that class loader and a warning should be logged.