Duplicate :
|
|
Relates :
|
|
Relates :
|
applications/jcstress/atomicity.java fails with the following assert when running with JDK-6824466 [1] which replaces the core reflection implementation to use method handles. The test also hits another assertion (JDK-8265391). [1] https://github.com/mlchung/jdk/tree/method-invoke-4 # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/home/mlchung/ws/jdk/jdk-open/src/hotspot/share/c1/c1_ValueStack.hpp:53), pid=15355, tid=15818 # assert(tag == t->type()->tag() || tag == objectTag && t->type()->tag() == addressTag) failed: types must correspond # # JRE version: OpenJDK Runtime Environment (17.0) (fastdebug build 17-internal+0-adhoc.mlchung.jdk-open) # Java VM: OpenJDK 64-Bit Server VM (fastdebug 17-internal+0-adhoc.mlchung.jdk-open, mixed mode, emulated-client, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0x793ae0] ValueStack::apush(Instruction*)+0x40 # # Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /home/mlchung/ws/jdk/core.15355) # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # --------------- S U M M A R Y ------------ Command Line: -XX:+UnlockDiagnosticVMOptions -XX:MaxRAMFraction=32 -XX:MinRAMFraction=32 -XX:CICompilerCount=4 -XX:ParallelGCThreads=4 -XX:Con cGCThreads=4 -XX:G1ConcRefinementThreads=4 -XX:-RestrictContended -XX:+WhiteBoxAPI -Xbootclasspath/a:/tmp/whitebox9616254137607220078.jar -XX: TieredStopAtLevel=1 org.openjdk.jcstress.ForkedMain 127.0.0.1 44319 fork-token-104 Host: core-libs-ol-76-8, Intel(R) Xeon(R) Platinum 8167M CPU @ 2.00GHz, 32 cores, 235G, Oracle Linux Server release 7.8 Time: Thu Apr 22 22:13:54 2021 GMT elapsed time: 41.907906 seconds (0d 0h 0m 41s) --------------- T H R E A D --------------- Current thread (0x00007f67903e9900): JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=15818, stack(0x00007f6797bfc000,0x00007f67 97cfd000)] Current CompileTask: C1: 41907 1045 1 jdk.internal.reflect.FieldAccessorImpl_LS$$3/0x0000000801021000::setShort (11 bytes) Stack: [0x00007f6797bfc000,0x00007f6797cfd000], sp=0x00007f6797cfad40, free space=1019k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x793ae0] ValueStack::apush(Instruction*)+0x40 V [libjvm.so+0x78c75c] GraphBuilder::iterate_bytecodes_for_block(int)+0x1e7c V [libjvm.so+0x78cd69] GraphBuilder::iterate_all_blocks(bool)+0x89 V [libjvm.so+0x78e07f] GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x53f V [libjvm.so+0x79dca5] IRScope::IRScope(Compilation*, IRScope*, int, ciMethod*, int, bool)+0x3e5 V [libjvm.so+0x79de34] IR::IR(Compilation*, ciMethod*, int)+0xf4 V [libjvm.so+0x75f381] Compilation::build_hir() [clone .part.0]+0x261 V [libjvm.so+0x763d3c] Compilation::compile_java_method()+0x1bc V [libjvm.so+0x764b50] Compilation::compile_method()+0x1d0 V [libjvm.so+0x76556b] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x36b V [libjvm.so+0x766983] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1a3 V [libjvm.so+0xa756a7] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x1107 V [libjvm.so+0xa763d8] CompileBroker::compiler_thread_loop()+0x5a8 V [libjvm.so+0x1a1ddd5] JavaThread::thread_main_inner()+0x605 V [libjvm.so+0x1a26570] Thread::call_run()+0x100 V [libjvm.so+0x15bb956] thread_native_entry(Thread*)+0x116
|