Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8319945

[lworld+vector] Fix vector api jtreg crash with "-XX:-EnableVectorSupport"

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              xgong Xiaohong Gong (Inactive)
              xgong Xiaohong Gong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: