JDK-8217447 : Develop flag TraceICs is broken
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9,10,11,12,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-01-21
  • Updated: 2020-05-18
  • Resolved: 2019-01-22
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 11 JDK 13
11.0.8-oracleFixed 13 b05Fixed
Description
Running with -XX:+TraceICs crashes the VM:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9a3fd3aceb, pid=8711, tid=8712
#
# JRE version: Java(TM) SE Runtime Environment (13.0) (fastdebug build 13-internal+0-adhoc.tobias.open)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 13-internal+0-adhoc.tobias.open, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x14a6ceb]  Metadata::print_value_string() const+0x3b

Stack: [0x00007f9a41ab6000,0x00007f9a41bb7000],  sp=0x00007f9a41bb0580,  free space=1001k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x14a6ceb]  Metadata::print_value_string() const+0x3b
V  [libjvm.so+0xaf2453]  CompiledIC::set_to_monomorphic(CompiledICInfo&)+0x593
V  [libjvm.so+0x179a9fe]  SharedRuntime::resolve_sub_helper_internal(methodHandle, frame const&, CompiledMethod*, bool, bool, Handle, CallInfo&, Bytecodes::Code, Thread*)+0x6de
V  [libjvm.so+0x179b028]  SharedRuntime::resolve_sub_helper(JavaThread*, bool, bool, Thread*)+0x478
V  [libjvm.so+0x179b30e]  SharedRuntime::resolve_helper(JavaThread*, bool, bool, Thread*)+0x4e
V  [libjvm.so+0x179bc2b]  SharedRuntime::resolve_o
Comments
jdk11 backport request I would like to have the patch in OpenJDK11 as well (for better parity with 11.0.8_oracle). The patch applies cleanly.
15-05-2020

http://cr.openjdk.java.net/~thartmann/8217447/webrev.00/
21-01-2019

ILW = Enabling develop flag crashes VM, always reproduces with -XX:+TraceICs, no workaround = MLH = P4
21-01-2019