JDK-8277055 : Assert "missing inlining msg" with -XX:+PrintIntrinsics
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16,17,18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-11-12
  • Updated: 2024-03-11
  • Resolved: 2022-03-03
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 17 JDK 18 JDK 19
17.0.4-oracleFixed 18.0.2Fixed 19 b13Fixed
Related Reports
Relates :  
Relates :  
Description
Running test/hotspot/jtreg/runtime/exceptionMsgs/ArrayIndexOutOfBoundsException/ArrayIndexOutOfBoundsExceptionTest.java with -XX:+PrintIntrinsics triggers: 
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/oracle/jdk/open/src/hotspot/share/opto/compile.cpp:4242), pid=543482, tid=543497
#  assert(_print_inlining_stream->size() > 0) failed: missing inlining msg

Current CompileTask:
C2:   9090 2573    b        jdk.internal.module.SystemModuleFinders$1::find (19 bytes)

Stack: [0x00007f135cede000,0x00007f135cfdf000],  sp=0x00007f135cfd9ea0,  free space=1007k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x9fb3e4]  Compile::print_inlining_update_delayed(CallGenerator*)+0x204
V  [libjvm.so+0x828c65]  CallGenerator::do_late_inline_helper()+0xf05
V  [libjvm.so+0xa013ed]  Compile::inline_incrementally_one()+0x33d
V  [libjvm.so+0xa01cd7]  Compile::process_late_inline_calls_no_inline(PhaseIterGVN&)+0x117
V  [libjvm.so+0xa038b0]  Compile::Optimize()+0x1af0
V  [libjvm.so+0xa0504e]  Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x159e
V  [libjvm.so+0x81f5f4]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x664
V  [libjvm.so+0xa15489]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xd09
V  [libjvm.so+0xa16128]  CompileBroker::compiler_thread_loop()+0x518
V  [libjvm.so+0x188d14e]  JavaThread::thread_main_inner()+0x27e
V  [libjvm.so+0x1893610]  Thread::call_run()+0x100
V  [libjvm.so+0x15745f4]  thread_native_entry(Thread*)+0x104
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk18u/pull/63 Date: 2022-03-29 15:14:34 +0000
29-03-2022

Fix Request (JDK 18u) Fixes an assert in C2. The fix is low risk and applies cleanly. Already tested and backported to Oracle JDK 17u. Tier 1-3 testing is running for JDK 18u.
29-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/303 Date: 2022-03-29 13:55:23 +0000
29-03-2022

Fix Request (17u): Should get backported for parity with 17.0.4-oracle. Applies cleanly. Test has passed.
29-03-2022

Changeset: b1f935c1 Author: Tobias Holenstein <tobias.holenstein@oracle.com> Committer: Tobias Hartmann <thartmann@openjdk.org> Date: 2022-03-03 07:59:45 +0000 URL: https://git.openjdk.java.net/jdk/commit/b1f935c1d0d3729470b57832cf74c43d49ea1f71
03-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7385 Date: 2022-02-08 16:57:20 +0000
28-02-2022

start failing with JDK-8273165
10-01-2022

simply this triggers the error as well: java -XX:+PrintIntrinsics -Xcomp -XX:-TieredCompilation --version
07-01-2022

ILW = Assert during C2 compilation in debug code, rare with diagnostic flag, no workaround but disable flag = MLH = P4
12-11-2021