Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273895

compiler/ciReplay/TestVMNoCompLevel.java fails due to wrong data size with TieredStopAtLevel=2,3

XMLWordPrintable

    • b16

        compiler/ciReplay/TestVMNoCompLevel.java fails when executed with TieredStopAtLevel=2 or 3 with the following assertion:

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/home/christian/jdk/open/src/hotspot/share/ci/ciReplay.cpp:1353), pid=51529, tid=51545
        # assert(m->_data_size + m->_extra_data_size == rec->_data_length * (int)sizeof(rec->_data[0]) || m->_data_size == rec->_data_length * (int)sizeof(rec->_data[0])) failed: must agree
        #
        # JRE version: Java(TM) SE Runtime Environment (18.0) (slowdebug build 18-internal+0-2021-09-16-0618098.christian...)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 18-internal+0-2021-09-16-0618098.christian..., mixed mode, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x71e669] ciReplay::initialize(ciMethodData*)+0x17d
        ...........
        Command Line: -XX:TieredStopAtLevel=2 -XX:-CreateCoredumpOnCrash -XX:+IgnoreUnrecognizedVMOptions -XX:TypeProfileLevel=222 -XX:+ReplayCompiles -XX:ReplayDataFile=test_replay.txt -XX:-TieredCompilation
        ...........
        Current thread (0x00007f00e0310cd0): JavaThread "C2 CompilerThread0" daemon [_thread_in_vm, id=51545, stack(0x00007f00d46ff000,0x00007f00d4800000)]


        Current CompileTask:
        C2: 1362 25 b compiler.ciReplay.CiReplayBase$TestMain::test (30 bytes)

        Stack: [0x00007f00d46ff000,0x00007f00d4800000], sp=0x00007f00d47fc990, free space=1014k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x71e669] ciReplay::initialize(ciMethodData*)+0x17d
        V [libjvm.so+0x70dab3] ciMethodData::load_data()+0x457
        V [libjvm.so+0x707cb8] ciMethod::ensure_method_data(methodHandle const&)+0x11e
        V [libjvm.so+0x707e10] ciMethod::ensure_method_data()+0x136
        V [libjvm.so+0x7abb36] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0xa8c
        V [libjvm.so+0x699436] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x138
        V [libjvm.so+0x7c978b] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x885
        V [libjvm.so+0x7c8417] CompileBroker::compiler_thread_loop()+0x3df
        V [libjvm.so+0x7e86c3] CompilerThread::thread_entry(JavaThread*, JavaThread*)+0x69
        V [libjvm.so+0x1193053] JavaThread::thread_main_inner()+0x15d
        V [libjvm.so+0x1192eef] JavaThread::run()+0x165
        V [libjvm.so+0x11907e4] Thread::call_run()+0x180
        V [libjvm.so+0xf9a7bb] thread_native_entry(Thread*)+0x18f

              chagedorn Christian Hagedorn
              chagedorn Christian Hagedorn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: