[
https://issues.apache.org/jira/browse/FELIX-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Felix Meschberger resolved FELIX-1833.
--------------------------------------
Resolution: Fixed
Fixed in Rev. 831396 as described
> Stopping the Felix SCR bundle may leave traces behind thus preventing the
> class loader from being GC-ed
> -------------------------------------------------------------------------------------------------------
>
> Key: FELIX-1833
> URL: https://issues.apache.org/jira/browse/FELIX-1833
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.2.0
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: scr-1.2.0
>
>
> Apart from the ServiceReference issue with Garbage Collection (and clean
> system state) described by FELIX-1832, some other cases may happen preventing
> proper garbage collection and ultimately classloader removal.
> One such case is the ComponentActorThread class which extends Thread. There
> are some libraries wich keep references to threads and thus also to the
> ComponentActorThread (one such class is the Lucene ClosableThreadLocal
> class). This prevents the object from being collected and consequently the
> class loader from being collected.
> Also there are some fields in the BundleComponentActivator which must be
> cleared and -- most notably -- the LogService tracker should be closed and
> dropped.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.