RFR(XS): 8133599: Unsafe.getAndSetObject() is no longer intrinsified by c2

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri Aug 14 18:51:27 UTC 2015


On 14.08.2015 21:44, Roland Westrelin wrote:
> 
>> Fix looks good, but what's the point for bounds-checking the $id anyway?
>> Let the "default" clause in switch(id) to handle "return false",
>> assuming no library-compiler-inline intrinsics appear in switch?
> 
> Thanks for looking at this, Aleksey. I guess bound checking the id is a
> bit faster than going through the switch and maybe less error prone.

Well, "less error prone" is kinda contradicted by empirical evidence
here. But I don't have strong opinion about this.

-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/20150814/2b5e4613/signature.asc>


More information about the hotspot-compiler-dev mailing list