JDK-8343747 : C2: TestReplicateAtConv.java crashes with -XX:MaxVectorSize=8
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-07
  • Updated: 2024-12-16
  • Resolved: 2024-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24 JDK 25
24Unresolved 25 b02Fixed
Related Reports
Relates :  
Description
As reported here:

https://github.com/openjdk/jdk/pull/21660#issuecomment-2461145117

CompileCommand: compileonly TestReplicateAtConv.test bool compileonly = true            
#                                                                                       
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jdk-dev/src/hotspot/share/opto/type.cpp:2499), pid=1424540, tid=1424557
#  assert(Matcher::vector_size_supported(elem_bt, length)) failed: length in range
#
# JRE version: OpenJDK Runtime Environment (24.0) (fastdebug build 24-internal-git-63c19d3db58)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 24-internal-git-63c19d3db58, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x17bca30]  TypeVect::make(BasicType, unsigned int, bool)+0x150
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /tmp/jdk-build/test-support/jtreg_test_hotspot_jtreg_compiler_vectorization_TestReplicateAtConv_java/scratch/0/core.1424540)
#
# An error report file with more information is saved as:
# /tmp/jdk-build/test-support/jtreg_test_hotspot_jtreg_compiler_vectorization_TestReplicateAtConv_java/scratch/0/hs_err_pid1424540.log
#
# Compiler replay data is saved as:
# /tmp/jdk-build/test-support/jtreg_test_hotspot_jtreg_compiler_vectorization_TestReplicateAtConv_java/scratch/0/replay_pid1424540.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp

Comments
Changeset: 874d68a9 Branch: master Author: Roland Westrelin <roland@openjdk.org> Date: 2024-12-06 09:19:55 +0000 URL: https://git.openjdk.org/jdk/commit/874d68a96ce67caaf944dd25fbfb44eab965dfd3
06-12-2024

It fails on the test that was added there. It execisses the odd case where Replicate leads to Cast.
03-12-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22442 Date: 2024-11-28 15:31:47 +0000
28-11-2024

ILW = Assertion failure in Super Word code with MaxVectorSize=8, single test, use different MaxVectorSize or use -XX:-UseSuperWord = HLM = P3
07-11-2024