Message11418
Given that we bundle Guava anyway, maybe the solution is as easy as changing sysClosers to be
new com.google.common.collect.MapMaker().weakKeys().makeMap()
In the doc they don't explicitly specify that such a map would automatically tidy up cleared keys, but they advertise it as a sutiable replacement for java.util.WeakHashMap. WeakHashMap doc explicitly states that it is self-cleaning, so I suppose this implies the Guava-version s either.
I will give it a try if I can reproduce this issue (didn't check out the code yet). |
|
Date |
User |
Action |
Args |
2017-06-07 14:23:20 | stefan.richthofer | set | messageid: <1496845400.19.0.0948050644403.issue2597@psf.upfronthosting.co.za> |
2017-06-07 14:23:20 | stefan.richthofer | set | recipients:
+ stefan.richthofer, tobias |
2017-06-07 14:23:20 | stefan.richthofer | link | issue2597 messages |
2017-06-07 14:23:19 | stefan.richthofer | create | |
|