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

[lworld] ciInstanceKlass::compute_nonstatic_fields fails with assert(get_instanceKlass()->is_loaded()) failed: must be at least loaded

XMLWordPrintable

      The test that was just added with JDK-8359377 test/hotspot/jtreg/runtime/valhalla/inlinetypes/verifier/RedefineStrictFieldsTest.java fails with "-Xcomp -XX:-TieredCompilation":

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/oracle/valhalla/open/src/hotspot/share/ci/ciInstanceKlass.cpp:59), pid=618084, tid=618105
      # assert(get_instanceKlass()->is_loaded()) failed: must be at least loaded
      #
      # 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..., compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xa1e6be] ciInstanceKlass::ciInstanceKlass(Klass*)+0x54e
      #

      Current CompileTask:
      C2:8046 3103 b java.util.zip.ZipUtils::javaEpochToLocalDateTime (13 bytes)

      Stack: [0x000071d740035000,0x000071d740135000], sp=0x000071d740131540, free space=1009k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xa1e6be] ciInstanceKlass::ciInstanceKlass(Klass*)+0x54e (ciInstanceKlass.cpp:59)
      V [libjvm.so+0xa57c34] ciObjectFactory::create_new_metadata(Metadata*)+0x2d4 (ciInlineKlass.hpp:48)
      V [libjvm.so+0xa58431] ciObjectFactory::get_metadata(Metadata*)+0x171 (ciObjectFactory.cpp:326)
      V [libjvm.so+0xa22ca3] ciInstanceKlass::compute_nonstatic_fields_impl(GrowableArray<ciField*> const*, GrowableArray<ciField*> const*)+0x5f3 (ciEnv.hpp:190)
      V [libjvm.so+0xa2438e] ciInstanceKlass::compute_nonstatic_fields()+0x29e (ciInstanceKlass.cpp:503)
      V [libjvm.so+0x1b96492] collect_inline_fields(ciInlineKlass*, Type const**, unsigned int&)+0x82 (ciInstanceKlass.hpp:223)
      V [libjvm.so+0x1b9b42f] TypeTuple::make_range(ciSignature*, Type::InterfaceHandling, bool)+0x23f (type.cpp:2436)
      V [libjvm.so+0x1b9bf2b] TypeFunc::make(ciMethod*, bool)+0x36b (type.cpp:7465)
      V [libjvm.so+0xb573a7] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1697 (compile.cpp:788)
      V [libjvm.so+0x96de34] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x484 (c2compiler.cpp:142)
      V [libjvm.so+0xb659b8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb58 (compileBroker.cpp:2307)
      V [libjvm.so+0xb66b78] CompileBroker::compiler_thread_loop()+0x568 (compileBroker.cpp:1951)
      V [libjvm.so+0x10e113b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:774)
      V [libjvm.so+0x1b5ac86] Thread::call_run()+0xb6 (thread.cpp:231)
      V [libjvm.so+0x17c6978] thread_native_entry(Thread*)+0x128 (os_linux.cpp:875)
      C [libc.so.6+0x9caa4]

        1. hs_err_pid618084.log
          87 kB
          Tobias Hartmann
        2. replay_pid618084.log
          155 kB
          Tobias Hartmann
        3. Test.java
          0.2 kB
          Tobias Hartmann

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

              Created:
              Updated: