JDK-8174721 : C1: Inlining through MH invokers/linkers in unreachable code is unsafe
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2017-02-10
  • Updated: 2020-09-01
  • Resolved: 2017-02-10
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 10 JDK 9
10Fixed 9 b159Fixed
Related Reports
Relates :  
Relates :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/scratch/opt/jprt/T/P1/191755.lmesnik/s/hotspot/src/share/vm/c1/c1_ValueStack.hpp:53), pid=8955, tid=8963
#  assert(tag == t->type()->tag() || tag == objectTag && t->type()->tag() == addressTag) failed: types must correspond
#
# JRE version: Java(TM) SE Runtime Environment (9.0) (fastdebug build 9-internal+0-2017-02-09-191755.lmesnik.8172899)
# Java VM: Java HotSpot(TM) Client VM (fastdebug 9-internal+0-2017-02-09-191755.lmesnik.8172899, mixed mode, serial gc, linux-arm)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /export/local/aurora/sandbox/results/workDir/compiler/jsr292/InvokerSignatureMismatch/core.8955)
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

C1:    963   85 %  b        compiler.jsr292.InvokerSignatureMismatch::mainLink @ 2 (31 bytes)
Comments
verified by nightly testing
26-07-2017

RBT: https://jdash.se.oracle.com/rbt/rbt-vladimir.x.ivanov-hs-20170210-1513-33590
10-02-2017

[~vlivanov], this seems to be jsr292 related, could you please have a look?
10-02-2017

The test was modified with JDK-8166110 (the failing method InvokerSignatureMismatch::mainLink was added) but the problem must have been there before because the fix only changed C2 code. I'm adding the integration_blocker label anyway because we may want to back out the test changes.
10-02-2017

ILW = Assert in C1 during compilation, only once with recently modified test, no workaround known = HLH = P2
10-02-2017