Request for reviews (M): 7170463: C2 should recognize "obj.getClass() == A.class" code pattern
John Rose
john.r.rose at oracle.com
Thu May 24 12:22:16 PDT 2012
On May 24, 2012, at 10:32 AM, Vladimir Kozlov wrote:
> But current code will assert in TOP case during call to is_oopptr() which is not good:
>
> obj_type->join(con_type)->is_oopptr()
>
> I am changing this code so it will skip TOP case:
>
> const TypeOopPtr* tboth = obj_type->join(con_type)->isa_oopptr();
> if (tboth != NULL && tboth != obj_type) {
Yes; it's just another guard for Top. (How many times have we forgotten that guard? :-)
— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20120524/7f5911ee/attachment.html
More information about the hotspot-compiler-dev
mailing list