JDK-8271438 : Crash with -XX:-Inline on basic vector API case (debug builds)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2021-07-29
  • Updated: 2022-02-07
  • Resolved: 2021-07-29
Related Reports
Duplicate :  
Description
SPROMPT>java -XX:-Inline -cp . add
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/compile.cpp:736
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/jatinbha/sandboxes/git-openjdk/jdk/src/hotspot/share/opto/compile.cpp:736), pid=1880, tid=1978
#  assert(IncrementalInline || (_late_inlines.length() == 0 && !has_mh_late_inlines())) failed: incremental inlining is off
#
# JRE version: OpenJDK Runtime Environment (18.0) (slowdebug build 18-internal+0-adhoc.root.jdk)
# Java VM: OpenJDK 64-Bit Server VM (slowdebug 18-internal+0-adhoc.root.jdk, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x7eac1c][thread 2086 also had an error]
  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x10c6
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/jatinbha/code/java/vector-api/core.1880)
#
# An error report file with more information is saved as:
# /home/jatinbha/code/java/vector-api/hs_err_pid1880.log
[thread 2081 also had an error]
#
# Compiler replay data is saved as:
# /home/jatinbha/code/java/vector-api/replay_pid1880.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Aborted (core dumped)

Problem is seen in DEBUG (asset) builds only.
Comments
Hi [~jbhateja], it does not affect product builds (i.e. no unexpected behavior)? Did you see that only with a single test? Can you add that test or steps how to reproduce it?
29-07-2021