This content has been marked as final.
Show 2 replies
-
1. Re: Instances Not GCed when Cache is removed from Cache Manager
nadirx Jan 7, 2016 2:55 AM (in response to tktong)Hi Timothy,
you are right. I've created [ISPN-6044] NumericVersionGenerator stops removed caches from being GCed - JBoss Issue Tracker
-
2. Re: Instances Not GCed when Cache is removed from Cache Manager
tktong Jan 7, 2016 3:47 AM (in response to nadirx)As a side note:
It is possible to free the cache reference by retrieving the NumericVersionGenerator from the component registry.
NumericVersionGenerator versionGenerator = (NumericVersionGenerator) cache.getComponentRegistry.getComponent("org.infinispan.transaction.versionGenerator"); versionGenerator.init(null);
However, the listener (NumericVersionGenerator$RankCalculator) would still be sitting in the CacheManagerNotifierImpl. The cache would be freed, but the RankCalculator would not be eligible to be garbage collected.