On Wed, 6 May 2026 19:34:05 GMT, Vladimir Ivanov <[email protected]> wrote:
> Perhaps more importantly, stub integrates better with C2. It allows us to
> create two entry conditions based on input array length, one for compile-time
> known length (length_type check) and another check for runtime (using
> generate_fair_guard), to fallback to non-intrinsic version for small arrays,
> for some definition of small. These checks are especially relevant, when the
> cost of calling the stub is more expensive than the non-intrinsified default
> version.
I took a closer look at the implementation and it seems equivalent to `if
(toIndex - fromIndex >= min_length) { call stub; } else {
fallback_implementation; }`. Do I miss something important?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/30612#issuecomment-4391839161