[lworld] Reflective construction of value object triggers assert in C2

XMLWordPrintable

      java --enable-preview -Xbatch Test.java
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/oracle/valhalla2/open/src/hotspot/share/opto/parse3.cpp:274), pid=3388769, tid=3388785
      # assert(!obj->is_InlineType()) failed: InlineTypeNodes are non-larval value objects
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0) (fastdebug build 27-jep401ea2-tohartma.open)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-jep401ea2-tohartma.open, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x197254c] Parse::do_put_xxx(Node*, ciField*, bool)+0xf2c

      Current CompileTask:
      C2:6532 2326 b 4 java.lang.invoke.LambdaForm$MH/0x0000000073288400::invoke (52 bytes)

      Stack: [0x00007f90285c2000,0x00007f90286c2000], sp=0x00007f90286bd720, free space=1005k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x197254c] Parse::do_put_xxx(Node*, ciField*, bool)+0xf2c (parse3.cpp:274)
      V [libjvm.so+0x19728bb] Parse::do_field_access(bool, bool)+0x22b
      V [libjvm.so+0x196e118] Parse::do_one_bytecode()+0x2b98
      V [libjvm.so+0x1952947] Parse::do_one_block()+0x357
      V [libjvm.so+0x1953c40] Parse::do_all_blocks()+0x130
      V [libjvm.so+0x1957540] Parse::Parse(JVMState*, ciMethod*, float)+0xc40
      V [libjvm.so+0xa0a625] ParseGenerator::generate(JVMState*)+0x135
      V [libjvm.so+0xdf469f] Parse::do_call()+0xe1f
      V [libjvm.so+0x196b9d8] Parse::do_one_bytecode()+0x458
      V [libjvm.so+0x1952947] Parse::do_one_block()+0x357
      V [libjvm.so+0x1953c40] Parse::do_all_blocks()+0x130
      V [libjvm.so+0x1957540] Parse::Parse(JVMState*, ciMethod*, float)+0xc40
      V [libjvm.so+0xa0a625] ParseGenerator::generate(JVMState*)+0x135
      V [libjvm.so+0xdf469f] Parse::do_call()+0xe1f
      V [libjvm.so+0x196b9d8] Parse::do_one_bytecode()+0x458
      V [libjvm.so+0x1952947] Parse::do_one_block()+0x357
      V [libjvm.so+0x1953c40] Parse::do_all_blocks()+0x130
      V [libjvm.so+0x1957540] Parse::Parse(JVMState*, ciMethod*, float)+0xc40
      V [libjvm.so+0xa0a625] ParseGenerator::generate(JVMState*)+0x135
      V [libjvm.so+0xc18dd5] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x15e5

        1. Test.java
          2 kB
          Tobias Hartmann

            Assignee:
            Quan Anh Mai
            Reporter:
            Tobias Hartmann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: