Message9795

Author zyasoft
Recipients kevinmcmurtrie, zyasoft
Date 2015-04-11.03:09:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428721767.46.0.475700529755.issue2321@psf.upfronthosting.co.za>
In-reply-to
Content
Agreed, it's overzealous. The problem here is that it should be 

    private static final Map<Thread, ThreadState> cachedThreadState =
        new MapMaker().weakKeys().makeMap();

(so not weakValues())

We still want ThreadState to GC upon the corresponding Thread be GC'ed, so weakKeys() makes sense.
History
Date User Action Args
2015-04-11 03:09:27zyasoftsetmessageid: <1428721767.46.0.475700529755.issue2321@psf.upfronthosting.co.za>
2015-04-11 03:09:27zyasoftsetrecipients: + zyasoft, kevinmcmurtrie
2015-04-11 03:09:27zyasoftlinkissue2321 messages
2015-04-11 03:09:26zyasoftcreate