On Fri, 13 May 2022 01:27:18 GMT, Xiaohong Gong <xg...@openjdk.org> wrote:

>> Maybe we could use `a.length - vsp.length() > 0 && offset u< a.length - 
>> vsp.length()` which would hoist the first check outside of the loop.
>> Thanks.
>
>> Maybe we could use `a.length - vsp.length() > 0 && offset u< a.length - 
>> vsp.length()` which would hoist the first check outside of the loop. Thanks.
> 
> Thanks for the review @merykitty ! We need the check `offset >= 0` which I 
> think is different from `a.length - vsp.length()`.

@XiaohongGong  `a >= 0 && a < b` is the same as `b >= 0 && a u< b`, it is how 
we are doing range check today. Thanks.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8620

Reply via email to