Loading classes with many methods is very expensive

Joel Borggrén-Franck joel.franck at oracle.com
Thu Oct 23 17:56:09 UTC 2014


On 23 Oct 2014, at 17:44, Peter Levart <peter.levart at gmail.com> wrote:
> 
> Is there a test that validates correctness of getMethods() or at least a set of interfaces and/or classes to exercise the algorithm and compare it to a different implementation?
> 

There is :)

http://hg.openjdk.java.net/jdk9/dev/jdk/file/8b4aa51c8744/test/java/lang/reflect/DefaultMethodMembers/FilterNotMostSpecific.java

IIRC 75% or so of the cases passes both before and after the change.

I have highlighted a number of interesting cases with line comments.

cheers
/Joel


More information about the hotspot-runtime-dev mailing list