-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 11, 17, 20, 21
-
Component/s: hotspot
-
b14
This showed up with some panama benchmarks.
The following code snippet (extracted from a ByteBuffer benchmark) is not vectorized:
public static void testByteLong4(byte[] dest, long[] src, int start, int stop) {
for (int i = start; i < stop; i++) {
UNSAFE.putLongUnaligned(dest, 8 * i + baseOffset, src[i]);
}
}
The following code snippet (extracted from a ByteBuffer benchmark) is not vectorized:
public static void testByteLong4(byte[] dest, long[] src, int start, int stop) {
for (int i = start; i < stop; i++) {
UNSAFE.putLongUnaligned(dest, 8 * i + baseOffset, src[i]);
}
}