null checks vs. class resolution, and translation strategy for casts

Brian Goetz brian.goetz at oracle.com
Mon Apr 13 19:28:40 UTC 2020



> There’s an alternative way to implement this:
>
> Casts to inline classes C can be translated to
>      #ldc C
>      #checkcast C

And, the ldc can be hoisted statically if desired, to the top of the 
method, or even into a static initializer.



More information about the valhalla-spec-observers mailing list