Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P4
-
Resolution: Cannot Reproduce
-
Affects Version/s: 8u321
-
Fix Version/s: None
-
Component/s: hotspot
-
Labels:
-
Subcomponent:
-
CPU:generic
-
OS:generic
Description
A DESCRIPTION OF THE PROBLEM :
Similar toJDK-8245801, the same error was tested under JDK8.
Reproduce:
java -Xcomp -XX:+StressRecompilation Test
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/user/jdk_source/jdk8u/hotspot/src/share/vm/oops/instanceKlass.cpp:2951), pid=77364, tid=0x00007f85b0838700
# assert(prev == NULL || !prev->is_in_use()) failed: redundunt OSR recompilation detected. memory leak in CodeCache!
#
# JRE version: OpenJDK Runtime Environment (8.0) (build 1.8.0-internal-fastdebug-user_2022_03_11_16_03-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.71-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00007f866021f000): JavaThread "C2 CompilerThread7" daemon [_thread_in_vm, id=77449, stack(0x00007f85b0739000,0x00007f85b0839000)]
Stack: [0x00007f85b0739000,0x00007f85b0839000], sp=0x00007f85b0835c40, free space=1011k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x121fcac] VMError::report_and_die()+0x2ec
V [libjvm.so+0x797f81] report_vm_error(char const*, int, char const*, char const*)+0x61
V [libjvm.so+0x9e9d3f] InstanceKlass::add_osr_nmethod(nmethod*)+0x1ef
V [libjvm.so+0x5ee097] ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, int, bool, bool, RTMState)+0x647
V [libjvm.so+0x6ff26e] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x16ae
V [libjvm.so+0x59ba70] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0xe0
V [libjvm.so+0x70bdf2] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x8b2
V [libjvm.so+0x70d3e0] CompileBroker::compiler_thread_loop()+0x710
V [libjvm.so+0x118b188] JavaThread::thread_main_inner()+0x1c8
V [libjvm.so+0x118b54d] JavaThread::run()+0x37d
V [libjvm.so+0xf19ca2] java_start(Thread*)+0x102
C [libpthread.so.0+0x76db] start_thread+0xdb
Current CompileTask:
C2: 5619 937 % b 4 FuzzerUtils::init @ 2 (33 bytes)
---------- BEGIN SOURCE ----------
Download TestStressRecompilation.zip from:
https://drive.google.com/file/d/1MzJYA4wbTdIUXMJEZTNyhHnyhnX0Gn8f/view?usp=sharing
---------- END SOURCE ----------
FREQUENCY : always
Similar to
Reproduce:
java -Xcomp -XX:+StressRecompilation Test
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/user/jdk_source/jdk8u/hotspot/src/share/vm/oops/instanceKlass.cpp:2951), pid=77364, tid=0x00007f85b0838700
# assert(prev == NULL || !prev->is_in_use()) failed: redundunt OSR recompilation detected. memory leak in CodeCache!
#
# JRE version: OpenJDK Runtime Environment (8.0) (build 1.8.0-internal-fastdebug-user_2022_03_11_16_03-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.71-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00007f866021f000): JavaThread "C2 CompilerThread7" daemon [_thread_in_vm, id=77449, stack(0x00007f85b0739000,0x00007f85b0839000)]
Stack: [0x00007f85b0739000,0x00007f85b0839000], sp=0x00007f85b0835c40, free space=1011k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x121fcac] VMError::report_and_die()+0x2ec
V [libjvm.so+0x797f81] report_vm_error(char const*, int, char const*, char const*)+0x61
V [libjvm.so+0x9e9d3f] InstanceKlass::add_osr_nmethod(nmethod*)+0x1ef
V [libjvm.so+0x5ee097] ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, int, bool, bool, RTMState)+0x647
V [libjvm.so+0x6ff26e] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x16ae
V [libjvm.so+0x59ba70] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0xe0
V [libjvm.so+0x70bdf2] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x8b2
V [libjvm.so+0x70d3e0] CompileBroker::compiler_thread_loop()+0x710
V [libjvm.so+0x118b188] JavaThread::thread_main_inner()+0x1c8
V [libjvm.so+0x118b54d] JavaThread::run()+0x37d
V [libjvm.so+0xf19ca2] java_start(Thread*)+0x102
C [libpthread.so.0+0x76db] start_thread+0xdb
Current CompileTask:
C2: 5619 937 % b 4 FuzzerUtils::init @ 2 (33 bytes)
---------- BEGIN SOURCE ----------
Download TestStressRecompilation.zip from:
https://drive.google.com/file/d/1MzJYA4wbTdIUXMJEZTNyhHnyhnX0Gn8f/view?usp=sharing
---------- END SOURCE ----------
FREQUENCY : always
Attachments
Issue Links
- relates to
-
JDK-8245801 StressRecompilation triggers assert "redundunt OSR recompilation detected. memory leak in CodeCache!"
-
- Resolved
-