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

assert(_print_inlining_stream->size() > 0) failed: missing inlining msg

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 25
    • 25
    • hotspot

      compiler/inlining/TestDuplicatedLateInliningOutput.java fails when being executed with -XX:+StressMethodHandleLinkerInlining as -javaoptions and applying the following patch to the test:

      diff --git a/test/hotspot/jtreg/compiler/inlining/TestDuplicatedLateInliningOutput.java b/test/hotspot/jtreg/compiler/inlining/TestDuplicatedLateInliningOutput.java
      --- a/test/hotspot/jtreg/compiler/inlining/TestDuplicatedLateInliningOutput.java (revision a44280ba79cbb9e34c8db7a26391d25c78bcc15c)
      +++ b/test/hotspot/jtreg/compiler/inlining/TestDuplicatedLateInliningOutput.java (date 1737617911966)
      @@ -56,7 +56,7 @@
           }
       
           private static void test(Class<?> launcher, String pattern1, String pattern2) throws Exception {
      - ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(
      + ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder(
                       "-XX:+UnlockDiagnosticVMOptions",
                       "-XX:+PrintInlining",
                       "-XX:CICompilerCount=1",

      This will pass the additional javaoption to the spawned VM .

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/8862186e-67f1-442a-b654-15b802343ea2-S131/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/cedca7c1-7643-407d-b81f-7585b22eabbb/runs/e910a8eb-5f45-4abf-b969-4b8a729c2de5/workspace/open/src/hotspot/share/opto/compile.cpp:4522), pid=984762, tid=984780
      # assert(_print_inlining_stream->size() > 0) failed: missing inlining msg
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-internal-LTS-2025-01-17-0223436.leonid.mesnik.jdk-8339889)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-internal-LTS-2025-01-17-0223436.leonid.mesnik.jdk-8339889, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)

      Current thread (0x00007801303582e0): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=984780, stack(0x0000780124300000,0x0000780124400000) (1024K)]


      Current CompileTask:
      C2:120 19 b compiler.inlining.TestDuplicatedLateInliningOutput$NonConstantReceiverLauncher::test (16 bytes)

      Stack: [0x0000780124300000,0x0000780124400000], sp=0x00007801243fb080, free space=1004k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xa4d446] Compile::print_inlining_update_delayed(CallGenerator*)+0x1c6 (compile.cpp:4522)
      V [libjvm.so+0x8aaa25] CallGenerator::do_late_inline_helper()+0x905 (callGenerator.cpp:699)
      V [libjvm.so+0xa55a32] Compile::inline_incrementally_one()+0xd2 (compile.cpp:2044)
      V [libjvm.so+0xa568d8] Compile::inline_incrementally(PhaseIterGVN&)+0x258 (compile.cpp:2127)
      V [libjvm.so+0xa572f6] Compile::Optimize()+0x366 (compile.cpp:2262)
      V [libjvm.so+0xa5b98f] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1b6f (compile.cpp:852)
      V [libjvm.so+0x8a2d15] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1d5 (c2compiler.cpp:142)
      V [libjvm.so+0xa67b48] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x928 (compileBroker.cpp:2319)
      V [libjvm.so+0xa68888] CompileBroker::compiler_thread_loop()+0x528 (compileBroker.cpp:1977)
      V [libjvm.so+0xf2eeae] JavaThread::thread_main_inner()+0xee (javaThread.cpp:777)
      V [libjvm.so+0x187e9c6] Thread::call_run()+0xb6 (thread.cpp:232)
      V [libjvm.so+0x1557ff8] thread_native_entry(Thread*)+0x128 (os_linux.cpp:860)
      C [libc.so.6+0x9ca94]
      Registers:
      RAX=0x000078013980c000, RBX=0x00007801243fd7c0, RCX=0x0000780138cd5c64, RDX=0x0000780138d8f348
      RSP=0x00007801243fb080, RBP=0x00007801243fb0b0, RSI=0x00000000000011aa, RDI=0x0000780138d8cf50
      R8 =0x00000000000069b8, R9 =0x0000780090038e20, R10=0x0000000000000000, R11=0x0000000000000000
      R12=0x0000780139340d44, R13=0x0000780090037a10, R14=0x0000780139340d44, R15=0x0000780090043f50
      RIP=0x0000780137c4d446, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
        TRAPNO=0x000000000000000e

      XMM[0]=0xabababababababab 0xabababababababab
      XMM[1]=0x0000000000000000 0x0000000000000001
      XMM[2]=0x0000000000000000 0x0000000000000002
      XMM[3]=0x0000000000000000 0x00007801303582e0
      XMM[4]=0x000078009006a120 0x000078009006a120
      XMM[5]=0x000078009006a120 0x000078009006a120
      XMM[6]=0x000078009006a120 0x000078009006a120
      XMM[7]=0x0000780090050180 0x0000780090044028
      XMM[8]=0x0000780090042608 0x0000780090042500
      XMM[9]=0x0000780090083388 0x0000780090083320
      XMM[10]=0x0000780090082ca0 0x0000780090082d70
      XMM[11]=0x0000780090082d08 0x0000780090082dd8
      XMM[12]=0x0000780090082c38 0x0000780090082bd0
      XMM[13]=0x550c7dc3243185be 0x12835b01d807aa98
      XMM[14]=0xab1c5ed5923f82a4 0x59f111f13956c25b
      XMM[15]=0x0000000000000000 0x0000000000000000
        MXCSR=0x00001fa2


            Unassigned Unassigned
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: