JDK 21 |
---|
21 b08Fixed |
Relates :
|
|
Relates :
|
This showed up with some panama benchmarks. The following code snippet is not vectorized because vectorization is not even attempted after range check eliminations has eliminated all tests in the main loop body: public static void test1(byte[] dest, long[] src) { for (int i = 0; i < src.length; i++) { if ((i < 0) || (8 > sizeBytes - i)) { throw new IndexOutOfBoundsException(); } UNSAFE.putLongUnaligned(dest, UNSAFE.ARRAY_BYTE_BASE_OFFSET + i * 8, src[i]); } }
|