pderop opened a new pull request, #606: URL: https://github.com/apache/felix-dev/pull/606
Motivation: When a component instance is destroyed, the dependencies added from its init() callback (instance-bound dependencies) are removed and stopped, but ComponentImpl keeps their entry in its dependency events map. Each destroy/init cycle leaks a dependency context and its events, and the services held by these events are never released. Modification: ComponentImpl now removes the entry of each instance-bound dependency it removes and closes its events. Events sent late by a removed dependency (for example when its tracker is closed) are ignored. A unit test reproduces the leak. Result: Removing an instance-bound dependency leaves no reference to it or to its events, as with Component.remove(Dependency). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
