JDK-8260407 : cmp != __null && cmp->Opcode() == Op_CmpL failure with -XX:StressLongCountedLoop=200000000 in lucene
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16,17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-01-26
  • Updated: 2021-02-04
  • Resolved: 2021-01-28
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
17 b08Fixed
Related Reports
Relates :  
Description
#  Internal Error (/home/roland/jdk-jdk/src/hotspot/share/opto/loopnode.cpp:1043), pid=3934292, tid=3934305
#  assert(cmp != __null && cmp->Opcode() == Op_CmpL) failed: no exit test

Current CompileTask:
C2:  65318 7621       4       org.apache.lucene.search.BooleanQuery::rewrite (2110 bytes)

Stack: [0x00007f81400f9000,0x00007f81401fa000],  sp=0x00007f81401f43d0,  free space=1004k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x12ba04d]  PhaseIdealLoop::check_long_counted_loop(IdealLoopTree*, Node*)+0xad
V  [libjvm.so+0x12d7db2]  PhaseIdealLoop::transform_long_counted_loop(IdealLoopTree*, Node_List&)+0x62
V  [libjvm.so+0x12d9915]  PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0xcf5
V  [libjvm.so+0xa1a76b]  PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x32b
V  [libjvm.so+0xa17993]  Compile::Optimize()+0x14c3
V  [libjvm.so+0xa19710]  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x1840
V  [libjvm.so+0x84914c]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1dc
V  [libjvm.so+0xa29788]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xe88
V  [libjvm.so+0xa2a3d8]  CompileBroker::compiler_thread_loop()+0x5a8
V  [libjvm.so+0x1853806]  JavaThread::thread_main_inner()+0x256
V  [libjvm.so+0x185a210]  Thread::call_run()+0x100
V  [libjvm.so+0x1540bd6]  thread_native_entry(Thread*)+0x116

Came up with testing that Tobias ran for JDK-8259609 but is unrelated
Comments
Changeset: 11d6467c Author: Roland Westrelin <roland@openjdk.org> Date: 2021-01-28 12:27:40 +0000 URL: https://git.openjdk.java.net/jdk/commit/11d6467c
28-01-2021

ILW = C2 compilation fails due to unexpected transformation of long counted loop, only happened with stress option, disable C2 compilation of affected method = HLM = P3
27-01-2021