RFR (S) 8135033: C1 should fast-path Object.class.isInstance(obj) to true
Aleksey Shipilev
aleksey.shipilev at oracle.com
Thu Sep 3 21:07:17 UTC 2015
Hi,
Continuing on VarHandles saga, more C1 quirks show up. Let's fix a
simple one: Object.class.isInstance(obj) should fold to "true". C2
handles this well, but not C1 (this is further exacerbated when tiered
policy decides Class.cast-holding method is trivial):
https://bugs.openjdk.java.net/browse/JDK-8135033
Patch:
http://cr.openjdk.java.net/~shade/8135033/webrev.00/
Testing:
* JPRT
* Targeted microbenchmarks, eyeballing assembly
Thanks,
-Aleksey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150904/4818efdb/signature.asc>
More information about the hotspot-compiler-dev
mailing list