-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: repo-leyden
-
Component/s: hotspot
compiler/ccp/TestAndConZeroCCP.java failed when run with AOT Cache in production run. The weird thing is we do AP4 compilation:
# Internal Error (/workspace/open/src/hotspot/share/memory/metaspace.cpp:915), pid=91348, tid=91399
# assert(!__the_thread__->owns_locks()) failed: allocating metaspace while holding mutex
Current CompileTask:
C2: 147 W0.0 Q0.0 A0.2 281 b AP 4 java.lang.Integer::parseInt (285 bytes)
Stack: [0x00007f600bbfd000,0x00007f600bcfd000], sp=0x00007f600bcf8830, free space=1006k
Native frames: (J=compiled Java code, A=AOT compiled, P=AOT preloaded, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1743d97] Metaspace::allocate(ClassLoaderData*, unsigned long, MetaspaceObj::Type, JavaThread*)+0x1d7 (metaspace.cpp:915)
V [libjvm.so+0x1764109] MethodCounters::allocate_with_exception(methodHandle const&, JavaThread*)+0x49 (methodCounters.cpp:70)
V [libjvm.so+0x175a2d4] Method::build_method_counters(Thread*, Method*)+0x74 (method.cpp:720)
V [libjvm.so+0xa73957] ciEnv::is_compilation_valid(JavaThread*, ciMethod*, bool, bool, bool)+0xe7 (method.hpp:828)
V [libjvm.so+0xa78678] ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, bool, bool, bool, int, bool)+0x288 (ciEnv.cpp:1216)
V [libjvm.so+0x1897ea1] PhaseOutput::install_code(ciMethod*, int, AbstractCompiler*, bool, bool)+0x1c1 (output.cpp:3210)
V [libjvm.so+0xbc9f1f] Compile::Code_Gen()+0xacf (compile.cpp:3145)
V [libjvm.so+0xbcf4d3] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x21b3 (compile.cpp:900)
V [libjvm.so+0x9e14c8] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x578 (c2compiler.cpp:173)
V [libjvm.so+0xbde954] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xd74 (compileBroker.cpp:2580)
V [libjvm.so+0xbe1248] CompileBroker::compiler_thread_loop()+0x648 (compileBroker.cpp:2216)
V [libjvm.so+0x115e60b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:774)
V [libjvm.so+0x1c1d7c6] Thread::call_run()+0xb6 (thread.cpp:254)
V [libjvm.so+0x187be39] thread_native_entry(Thread*)+0x1a9 (os_linux.cpp:883)
# Internal Error (/workspace/open/src/hotspot/share/memory/metaspace.cpp:915), pid=91348, tid=91399
# assert(!__the_thread__->owns_locks()) failed: allocating metaspace while holding mutex
Current CompileTask:
C2: 147 W0.0 Q0.0 A0.2 281 b AP 4 java.lang.Integer::parseInt (285 bytes)
Stack: [0x00007f600bbfd000,0x00007f600bcfd000], sp=0x00007f600bcf8830, free space=1006k
Native frames: (J=compiled Java code, A=AOT compiled, P=AOT preloaded, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1743d97] Metaspace::allocate(ClassLoaderData*, unsigned long, MetaspaceObj::Type, JavaThread*)+0x1d7 (metaspace.cpp:915)
V [libjvm.so+0x1764109] MethodCounters::allocate_with_exception(methodHandle const&, JavaThread*)+0x49 (methodCounters.cpp:70)
V [libjvm.so+0x175a2d4] Method::build_method_counters(Thread*, Method*)+0x74 (method.cpp:720)
V [libjvm.so+0xa73957] ciEnv::is_compilation_valid(JavaThread*, ciMethod*, bool, bool, bool)+0xe7 (method.hpp:828)
V [libjvm.so+0xa78678] ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, bool, bool, bool, int, bool)+0x288 (ciEnv.cpp:1216)
V [libjvm.so+0x1897ea1] PhaseOutput::install_code(ciMethod*, int, AbstractCompiler*, bool, bool)+0x1c1 (output.cpp:3210)
V [libjvm.so+0xbc9f1f] Compile::Code_Gen()+0xacf (compile.cpp:3145)
V [libjvm.so+0xbcf4d3] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x21b3 (compile.cpp:900)
V [libjvm.so+0x9e14c8] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x578 (c2compiler.cpp:173)
V [libjvm.so+0xbde954] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xd74 (compileBroker.cpp:2580)
V [libjvm.so+0xbe1248] CompileBroker::compiler_thread_loop()+0x648 (compileBroker.cpp:2216)
V [libjvm.so+0x115e60b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:774)
V [libjvm.so+0x1c1d7c6] Thread::call_run()+0xb6 (thread.cpp:254)
V [libjvm.so+0x187be39] thread_native_entry(Thread*)+0x1a9 (os_linux.cpp:883)