aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexis de Talhouët <adetalho...@inocybe.com>
Subject ARIES-1634 BlueprintContainer are leaked when destroyed
Date Wed, 16 Nov 2016 18:51:10 GMT
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message