RFR JDK-8011940 : java.lang.Class.getAnnotations() always enters synchronized method
peter.levart at gmail.com
Sun Aug 11 11:39:17 UTC 2013
On 08/07/2013 06:42 PM, Aleksey Shipilev wrote:
> Hi Peter,
> On 08/07/2013 08:18 PM, Peter Levart wrote:
> Yeah, looks familiar. The install loop is very complicated though, can
> we simplify it? It seems profitable to move the retry loop up into
> annotationData(): you then don't have to pass the $annotationData, you
> can merge the exit paths for $classRedefinedCount, etc.
Right, the retry-loop can be simplified. There are still two methods,
but the 2nd is only a factory method now:
10 LOC saved.
More information about the core-libs-dev