BUG-4514: clear oldModule/oldInstance when no longer needed 96/30896/2
authorRobert Varga <rovarga@cisco.com>
Wed, 2 Dec 2015 14:20:22 +0000 (15:20 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 8 Dec 2015 09:19:58 +0000 (09:19 +0000)
commit9708d3438a661c6065f81bd44d00cc8a7242ec6f
treeba0b71f27c54960b8af023ea90f3deb74c22b772
parent6e5e2d53f03c96f69758e7ee08ee58b9d5129c8f
BUG-4514: clear oldModule/oldInstance when no longer needed

When we acquire a new instance we no longer need the old module nor
instance. Failing to clear these references leads to slow memory leak,
as we retain the complete history of modules as transactions are being
made.

Change-Id: I42899176d335e5f6ac66ecb1dfe080c4dd14ab2a
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 7ff9016372201b5a14fd5b6f2e1faba1bc3760f3)
opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/spi/AbstractModule.java