[10] RFR(S): 8181781: Replay compilation should ignore unresolved Klass with -XX:+ReplayIgnoreInitErrors
Vladimir Kozlov
vladimir.kozlov at oracle.com
Thu Jun 8 18:42:40 UTC 2017
Good. Thank you, Tobias, for fixing this.
Vladimir
On 6/8/17 4:21 AM, Tobias Hartmann wrote:
> Hi,
>
> please review the following patch:
> https://bugs.openjdk.java.net/browse/JDK-8181781
> http://cr.openjdk.java.net/~thartmann/8181781/webrev.00/
>
> Replay compilation currently crashes if a Klass referenced in ciMethodData cannot be resolved. However, in many cases it's not necessary to resolve the class for replay compilation to succeed. We should be more conservative if -XX:+ReplayIgnoreInitErrors is set. I noticed this while debugging JDK-8181741. The generated replay compilation files fail because ciMethodData for AnnotationParser::parseAnnotations2 contains a reference to com/sun/proxy/jdk/proxy2/$Proxy4 which cannot be resolved. However, if we ignore those resolution failures compilation succeeds and the bug easily reproduces.
>
> Thanks,
> Tobias
>
More information about the hotspot-compiler-dev
mailing list