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

[lworld] C2 crashes with -XX:ForceNonTearable=*

XMLWordPrintable

      Running test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestFieldNullMarkers.java with -XX:ForceNonTearable=* fails:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/oracle/valhalla/open/src/hotspot/share/opto/lcm.cpp:1219), pid=3253900, tid=3253916
      # assert(C->failure_is_artificial()) failed: graph should be schedulable
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-lworld5ea-LTS-2025-05-22-1214417.tobias...)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-lworld5ea-LTS-2025-05-22-1214417.tobias..., mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x14906ea] PhaseCFG::schedule_local(Block*, GrowableArray<int>&, VectorSet&, long*)+0x2e4a
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /oracle/valhalla/open/JTwork/scratch/core.3253900)
      #
      # An error report file with more information is saved as:
      # /oracle/valhalla/open/JTwork/scratch/hs_err_pid3253900.log
      #

      Current CompileTask:
      C2:5655 1119 % !b 4 compiler.valhalla.inlinetypes.TestFieldNullMarkers::main @ 16 (2992 bytes)

      Stack: [0x0000700332800000,0x0000700332900000], sp=0x00007003328fb650, free space=1005k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x14906ea] PhaseCFG::schedule_local(Block*, GrowableArray<int>&, VectorSet&, long*)+0x2e4a (lcm.cpp:1219)
      V [libjvm.so+0xf5a483] PhaseCFG::global_code_motion()+0xb23 (gcm.cpp:1736)
      V [libjvm.so+0xf5ad08] PhaseCFG::do_global_code_motion()+0x68 (gcm.cpp:1781)
      V [libjvm.so+0xb51c23] Compile::Code_Gen()+0x5d3 (compile.cpp:3532)
      V [libjvm.so+0xb5747b] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x212b (compile.cpp:917)
      V [libjvm.so+0x96db34] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x484 (c2compiler.cpp:142)
      V [libjvm.so+0xb64ff8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb58 (compileBroker.cpp:2307)
      V [libjvm.so+0xb661b8] CompileBroker::compiler_thread_loop()+0x568 (compileBroker.cpp:1951)
      V [libjvm.so+0x10dff7b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:774)
      V [libjvm.so+0x1b5a146] Thread::call_run()+0xb6 (thread.cpp:231)
      V [libjvm.so+0x17c56b8] thread_native_entry(Thread*)+0x128 (os_linux.cpp:875)

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

              Created:
              Updated: