Hello aries-dev,

I have opened a JIRA ticket and a PR ...
JIRA: https://issues.apache.org/jira/browse/ARIES-1634 
<https://issues.apache.org/jira/browse/ARIES-1634> 
PR: https://github.com/apache/aries/pull/58 
<https://github.com/apache/aries/pull/58>

… for the following issue:
When the BlueprintContainer is #destroy(), it is not unregistered from the OSGi 
registry hence is retained in the memory.
But when the BlueprintContainer is #quiesce() it is correctly unregistered from 
the OSGi registry.
The workaround it to first #quiesce() the container, then #destroy() it, so no 
service is retaining it, and it can be GC.

So the PR unregisters the registration object retaining the BlueprintContainer 
on #destroy().

I hope I haven’t missed anything.

Thanks,
Alexis

Reply via email to