You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by Alexis de Talhouët <ad...@inocybe.com> on 2016/11/16 18:51:10 UTC

ARIES-1634 BlueprintContainer are leaked when destroyed

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