-
Enhancement
-
Resolution: Fixed
-
P4
-
repo-valhalla
Several vector api jtreg tests crash with "-XX:-EnableVectorSupport" on machines that the operations of vector payload can be vectorized.
Here are the crash log:
```
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (valhalla/src/hotspot/share/opto/library_call.cpp:2465), pid=467482, tid=467499
# assert(bt == alias_type->basic_type() || bt == T_PRIMITIVE_OBJECT) failed: should match
#
# JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-git-5b2fa0aab)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-git-5b2fa0aab, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x11b1738] LibraryCallKit::inline_unsafe_access(bool, BasicType, LibraryCallKit::AccessKind, bool)+0x13e8
```
The reason is the field in the vector payload is not found by given offset when using Usafe access.
Here are the crash log:
```
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (valhalla/src/hotspot/share/opto/library_call.cpp:2465), pid=467482, tid=467499
# assert(bt == alias_type->basic_type() || bt == T_PRIMITIVE_OBJECT) failed: should match
#
# JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-git-5b2fa0aab)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-git-5b2fa0aab, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x11b1738] LibraryCallKit::inline_unsafe_access(bool, BasicType, LibraryCallKit::AccessKind, bool)+0x13e8
```
The reason is the field in the vector payload is not found by given offset when using Usafe access.