Rezaei, Mohammad A.
Mohammad.Rezaei at gs.com
Wed Dec 16 16:49:03 UTC 2015
Doesn't this sort of optimization fit better in the (runtime) class specializer than either javac or C1/C2? Surely, the specializer has to deal with Any::isNull call sites regardless, so might as well not generate the dead code paths.
>From: valhalla-dev [mailto:valhalla-dev-bounces at openjdk.java.net] On Behalf Of
>Sent: Wednesday, December 16, 2015 11:36 AM
>To: Paul Benedict; Brian Goetz
>Subject: Re: Any::isNull check
>The question is whenever you have several .class for one generic class or if
>there is only one fat .class and multiple classes (or something lighter) at
>If you have one .class, the compiler can not do something for you.
More information about the valhalla-dev