Message11418

Author stefan.richthofer
Recipients stefan.richthofer, tobias
Date 2017-06-07.14:23:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496845400.19.0.0948050644403.issue2597@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2017-06-07 14:23:20stefan.richthofersetmessageid: <1496845400.19.0.0948050644403.issue2597@psf.upfronthosting.co.za>
2017-06-07 14:23:20stefan.richthofersetrecipients: + stefan.richthofer, tobias
2017-06-07 14:23:20stefan.richthoferlinkissue2597 messages
2017-06-07 14:23:19stefan.richthofercreate