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

[lworld] compiler/valhalla/inlinetypes/TestMethodHandles.java fails with "out of virtual registers in LIR generator"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • hotspot

      The test fails with "-XX:+AbortVMOnCompilationFailure":

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/share/compiler/compileBroker.cpp:2126), pid=1145856, tid=1145883
      # fatal error: Not compilable at tier 3: out of virtual registers in LIR generator
      #
      # JRE version: Java(TM) SE Runtime Environment (24.0) (fastdebug build 24-lworld5ea-2025-01-29-1159461.tobias.hartmann.valhalla)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-lworld5ea-2025-01-29-1159461.tobias.hartmann.valhalla, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xa9dc0b] CompileBroker::handle_compile_error(CompilerThread*, CompileTask*, ciEnv*, int, char const*)+0x6b

      Current CompileTask:
      C1:9655 508 b 3 java.lang.invoke.MethodHandle::<init> (37 bytes)

      Stack: [0x00007fcc7840e000,0x00007fcc7850e000], sp=0x00007fcc7850c3c0, free space=1016k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xa9dc0b] CompileBroker::handle_compile_error(CompilerThread*, CompileTask*, ciEnv*, int, char const*)+0x6b (compileBroker.cpp:2126)
      V [libjvm.so+0xaa240b] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x30b (compileBroker.cpp:2353)
      V [libjvm.so+0xaa3768] CompileBroker::compiler_thread_loop()+0x528 (compileBroker.cpp:1977)
      V [libjvm.so+0xfa720c] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:759)
      V [libjvm.so+0x192ec26] Thread::call_run()+0xb6 (thread.cpp:232)
      V [libjvm.so+0x15e89f8] thread_native_entry(Thread*)+0x128 (os_linux.cpp:858)

            Unassigned Unassigned
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: