Any::isNull check

Rezaei, Mohammad A. Mohammad.Rezaei at
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.


>-----Original Message-----
>From: valhalla-dev [mailto:valhalla-dev-bounces at] On Behalf Of
>Rémi Forax
>Sent: Wednesday, December 16, 2015 11:36 AM
>To: Paul Benedict; Brian Goetz
>Cc: valhalla-dev
>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 mailing list