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

[lworld] C2 Runtime load_unknown_inline should not return null-free type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • hotspot

      The attached test fails with the following fatal error when run with -XX:+UseNullableValueFlattening:

      $ javac --enable-preview --source 25 --add-exports java.base/jdk.internal.value=ALL-UNNAMED --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED Test.java && java --enable-preview --add-exports java.base/jdk.internal.value=ALL-UNNAMED --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED -Xcomp -XX:CompileOnly=Test*::test -XX:+UseNullableValueFlattening Test

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/christian/valhalla2/open/src/hotspot/cpu/x86/macroAssembler_x86.cpp:846), pid=360867, tid=360868
      # fatal error: DEBUG MESSAGE: null oop passed to encode_heap_oop_not_null2
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0) (slowdebug build 25-lworld5ea-LTS-2025-04-22-1113203.christian...)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 25-lworld5ea-LTS-2025-04-22-1113203.christian..., compiled mode, tiered, compressed oops, compressed class ptrs, serial gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x16c3165] MacroAssembler::debug64(char*, long, long*)+0xf9
      ............
      Command Line: --enable-preview --add-exports=java.base/jdk.internal.value=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED -Xcomp -XX:CompileOnly=Test*::test -XX:+UseNullableValueFlattening Test
      ............
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x16c3165] MacroAssembler::debug64(char*, long, long*)+0xf9 (macroAssembler_x86.cpp:846)

            thartmann Tobias Hartmann
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: