[15] RFR 8247246: Add explicit ResolvedJavaType.link and expose presence of default methods
Vladimir Kozlov
vladimir.kozlov at oracle.com
Tue Jun 23 22:02:53 UTC 2020
Looks good.
Thanks,
Vladimir
On 6/23/20 1:46 PM, Tom Rodriguez wrote:
> http://cr.openjdk.java.net/~never/8247246/webrev
> https://bugs.openjdk.java.net/browse/JDK-8247246
>
> This adds a couple operations the JVMCI that are necessary for interacting with classes that aren't linked.
> ResolvedJavaType.link explicitly attempts linking if the current class isn't linked. ResolvedJavaType.getDeclaredMethods
> and getDeclaredConstructors both force linking as part of their implementation though this is more historical than
> necessary though there is code which relies on this behavioiur to force linking. Additionally there's currently no way
> of identifying class and interface which default other than by visiting all the methods of the clases, so
> hasDefaultMethods and declaresDefaultMethods have been added to expose this without forcing linking. Mach5 testing is
> clean and includes unit tests which exercise the new API.
More information about the hotspot-compiler-dev
mailing list