bottleneck by java.lang.Class.getAnnotations()
Alexander Knöller
alexander.knoeller at gmail.com
Thu Nov 1 06:17:47 PDT 2012
Hi there.
java.lang.Class.getAnnotations() always enters a synchronized-block, slowing down multi core machines that heavily make use of Annotations.
(in our Case we use LoadTimeWeaving in the spring-framework 3.1.2)
We are using sun-jdk 6 which has the same performance-bottleneck.
openjdk7 and 8 show no fix so far, although it looks like it might be possible to build a kind of double-checked locking?
Has this issue ever been persued?
Special Regards
Alex Knöller
More information about the jdk6-dev
mailing list