JDK-8257631 : C2: Assertion failure in ArrayCopyNode::get_count() during late inlining
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-02
  • Updated: 2020-12-17
  • Resolved: 2020-12-04
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 16
16 b28Fixed
Related Reports
Relates :  
Description
#  Internal Error (.../src/hotspot/share/opto/arraycopynode.cpp:140), pid=570232, tid=336544
#  assert((get_length_if_constant(phase) == -1) == !ary_src->size()->is_con() || phase->is_IterGVN() || StressReflectiveCode) failed: inconsistent

Stack: [0x0000009355f00000,0x0000009356000000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xaec301]  os::platform_print_native_stack+0xf1  (os_windows_x86.cpp:236)
V  [jvm.dll+0xd17097]  VMError::report+0xfb7  (vmError.cpp:731)
V  [jvm.dll+0xd189be]  VMError::report_and_die+0x7de  (vmError.cpp:1537)
V  [jvm.dll+0xd190d4]  VMError::report_and_die+0x64  (vmError.cpp:1328)
V  [jvm.dll+0x4c30d7]  report_vm_error+0x117  (debug.cpp:267)
V  [jvm.dll+0x2351f5]  ArrayCopyNode::get_count+0x245  (arraycopynode.cpp:139)
V  [jvm.dll+0x232af4]  ArrayCopyNode::Ideal+0x494  (arraycopynode.cpp:538)
V  [jvm.dll+0xb2ea11]  PhaseGVN::transform_no_reclaim+0x91  (phaseX.cpp:831)
V  [jvm.dll+0x29aef7]  BarrierSetC2::clone+0x367  (barrierSetC2.cpp:693)
V  [jvm.dll+0x3c7fd2]  CardTableBarrierSetC2::clone+0x42  (cardTableBarrierSetC2.cpp:143)
V  [jvm.dll+0x6245cc]  GraphKit::access_clone+0x3c  (graphKit.cpp:1705)
V  [jvm.dll+0x911cef]  LibraryCallKit::copy_to_clone+0x19f  (library_call.cpp:4019)
V  [jvm.dll+0x920a96]  LibraryCallKit::inline_native_clone+0x8e6  (library_call.cpp:4144)
V  [jvm.dll+0x92f8ee]  LibraryCallKit::try_to_inline+0x17ae  (library_call.cpp:488)
V  [jvm.dll+0x91217c]  LibraryIntrinsic::generate+0x14c  (library_call.cpp:113)
V  [jvm.dll+0x53d48c]  Parse::do_call+0x99c  (doCall.cpp:650)
V  [jvm.dll+0xb162a3]  Parse::do_one_bytecode+0x32d3  (parse2.cpp:2754)
V  [jvm.dll+0xb07fc7]  Parse::do_one_block+0x437  (parse1.cpp:1533)
V  [jvm.dll+0xb06d0d]  Parse::do_all_blocks+0x5cd  (parse1.cpp:710)
V  [jvm.dll+0xb032ad]  Parse::Parse+0xc4d  (parse1.cpp:616)
V  [jvm.dll+0x3b4135]  ParseGenerator::generate+0xa5  (callGenerator.cpp:106)
V  [jvm.dll+0x3b2189]  CallGenerator::do_late_inline_helper+0x969  (callGenerator.cpp:711)
V  [jvm.dll+0x4874f3]  Compile::inline_incrementally_one+0x173  (compile.cpp:1917)
V  [jvm.dll+0x486f92]  Compile::inline_incrementally+0x342  (compile.cpp:1988)
V  [jvm.dll+0x47ca2f]  Compile::Optimize+0x22f  (compile.cpp:2149)
V  [jvm.dll+0x47a63c]  Compile::Compile+0x144c  (compile.cpp:780)

Comments
Changeset: f33808ff Author: Vladimir Ivanov <vlivanov@openjdk.org> Date: 2020-12-04 07:55:40 +0000 URL: https://git.openjdk.java.net/jdk/commit/f33808ff
04-12-2020