PR #65 weakens the classloader leak by switching PluginErrors to extend KtDiagnosticsContainer and overriding getRendererFactory(), so RootDiagnosticRendererFactory no longer holds a reference to plugin classes. However, the leak is not fully eliminated, but only noticeably weakened and only occurs after multiple (10+) reruns now.
The reasons for this are not known at the moment. It might make sense perform a proper analysis in the future, which includes a heap dump and a tracking of leaked classes and their sources.
PR #65 weakens the classloader leak by switching
PluginErrorsto extendKtDiagnosticsContainerand overridinggetRendererFactory(), soRootDiagnosticRendererFactoryno longer holds a reference to plugin classes. However, the leak is not fully eliminated, but only noticeably weakened and only occurs after multiple (10+) reruns now.The reasons for this are not known at the moment. It might make sense perform a proper analysis in the future, which includes a heap dump and a tracking of leaked classes and their sources.