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

[lworld] GraphBuilder::withfield should handle identity class holder

XMLWordPrintable

      test/hotspot/jtreg/runtime/valhalla/inlinetypes/withfieldTests/RunWithfieldTests.java fails with -Xcomp:

      # Internal Error (/scratch/hseigel/valhalla_8269756.lworld/open/src/hotspot/share/c1/c1_GraphBuilder.cpp:2086), pid=6932, tid=6949
      # assert(holder->is_inlinetype()) failed: must be an inline klass
      #
      # JRE version: Java(TM) SE Runtime Environment (18.0) (fastdebug build 18-lworld3ea+0-2021-07-20-1312049.hseigel.valhalla8269756.lworld)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-lworld3ea+0-2021-07-20-1312049.hseigel.valhalla8269756.lworld, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
                                     ...

      Stack: [0x00007f89cebf7000,0x00007f89cecf8000], sp=0x00007f89cecf5cb0, free space=1019k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x74a0c3] GraphBuilder::withfield(int)+0x233
      V [libjvm.so+0x750efd] GraphBuilder::iterate_bytecodes_for_block(int)+0x6dd
      V [libjvm.so+0x752cd9] GraphBuilder::iterate_all_blocks(bool)+0x89
      V [libjvm.so+0x753f0e] GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x55e
      V [libjvm.so+0x764bf5] IRScope::IRScope(Compilation*, IRScope*, int, ciMethod*, int, bool)+0x3e5
      V [libjvm.so+0x764d84] IR::IR(Compilation*, ciMethod*, int)+0xf4
      V [libjvm.so+0x7220d1] Compilation::build_hir() [clone .part.0]+0x261
      V [libjvm.so+0x726a4a] Compilation::compile_java_method()+0x1ba
      V [libjvm.so+0x727850] Compilation::compile_method()+0x1d0
      V [libjvm.so+0x7282ca] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x3ca
      V [libjvm.so+0x729793] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1a3
      V [libjvm.so+0xa854e9] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xfb9
      V [libjvm.so+0xa86258] CompileBroker::compiler_thread_loop()+0x5a8
      V [libjvm.so+0x19965a1] JavaThread::thread_main_inner()+0x271
      V [libjvm.so+0x199e200] Thread::call_run()+0x100
      V [libjvm.so+0x1640e64] thread_native_entry(Thread*)+0x104

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

              Created:
              Updated:
              Resolved: