Join GitHub today
Deprecating Memoizer as there is a better replacement in Java 8 #3091
@johnou so is there some JDK-nnnnnnn tracker issue discussing the performance characteristics? If there is an acknowledged problem and a plan to fix it in Java 8 then we should just use the API as it was designed. If not, then this should just be closed and we will carry on with our weird custom utilities.
Sorry, just saw the most recent comments here.
Not sure about the others, but
Jenkins.getExtensionList is called from performance-sensitive sites, so we could consider adding an optimistic
get to that one at least, if it is thought to be useful under heavy load conditions.
@jglick There is an issue report, which points to this PR: https://issues.jenkins-ci.org/browse/JENKINS-48505
referenced this pull request
Dec 15, 2017
for reference, here is the bug report (only fixed in JDK9) JDK-8184907 : ConcurrentHashMap.computeIfAbsent acquires lock even when key present http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8184907