RFR(S): 8042997: Make intrinsic some or all check index/range methods
paul.sandoz at oracle.com
Mon Nov 9 12:13:39 UTC 2015
> On 9 Nov 2015, at 12:24, Roland Westrelin <roland.westrelin at oracle.com> wrote:
> This intrinsifies Objects.checkIndex() as a CmpU + RangeCheck node sequence that C2 then optimizes using the existing range check optimizations. The goal is allow library code to have range checks that are guaranteed to be properly optimized.
> I’m not sure if we want to leave the comment on c2 in the library code.
I agree with Aleksey about turning the comment into an @implNote with appropriate substitution of “C2", otherwise JDK code updates look good.
When get’s integrated into jdk9/dev i will update a few places in nio buffers to use the checkIndex method.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the hotspot-compiler-dev