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

[JVMCI] assert(cp->tag_at(index).is_unresolved_klass()) in lookupKlassInPool

XMLWordPrintable

    • b06

      assert failure with test/hotspot/jtreg/runtime/cds/appcds/ParallelLoadTest.java in c2v_lookupKlassInPool. I'm pretty sure we can also see unresolved_klass_in_error in this path and I think the path is also inherently racy so it probably needs some general attention.

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp:883), pid=898350, tid=898365
      # assert(cp->tag_at(index).is_unresolved_klass()) failed: wrong tag
      #
      # JRE version: Java(TM) SE Runtime Environment (21.0+1) (fastdebug build 21-galahadeestaging+1-LTS-68)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-galahadeestaging+1-LTS-68, compiled mode, sharing, jvmci, jvmci compiler, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x103d21b] c2v_lookupKlassInPool(JNIEnv_*, _jobject*, _jobject*, long, int)+0x67b


      Current CompileTask:
      JVMCI-native: 103826 1941 b java.util.stream.IntPipeline::filter (22 bytes)

      Stack: [0x00007eff599fb000,0x00007eff59bfc000], sp=0x00007eff59bf92c0, free space=2040k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x103d21b] c2v_lookupKlassInPool(JNIEnv_*, _jobject*, _jobject*, long, int)+0x67b (jvmciCompilerToVM.cpp:883)
      C [libjvmcicompiler.so+0xe82070] java.lang.Object* jdk.vm.ci.hotspot.CompilerToVM::lookupKlassInPool(jdk.vm.ci.hotspot.HotSpotConstantPool*, long, int)+0xd0
      C [libjvmcicompiler.so+0x12b4556] void org.graalvm.compiler.java.BytecodeParser::genNewInstance(int)+0x186
      C [libjvmcicompiler.so+0x12c56b2] void org.graalvm.compiler.java.BytecodeParser::processBytecode(int, int)+0xa32
      C [libjvmcicompiler.so+0x12be94e] void org.graalvm.compiler.java.BytecodeParser::iterateBytecodesForBlock(org.graalvm.compiler.java.BciBlockMapping$BciBlock*)+0x15e
      C [libjvmcicompiler.so+0x12bb1ee] void org.graalvm.compiler.java.BytecodeParser::handleBytecodeBlock(org.graalvm.compiler.java.BciBlockMapping$BciBlock*)+0x45e
      C [libjvmcicompiler.so+0x12c4866] void org.graalvm.compiler.java.BytecodeParser::processBlock(org.graalvm.compiler.java.BciBlockMapping$BciBlock*)+0x236
      C [libjvmcicompiler.so+0x12a4c56] void org.graalvm.compiler.java.BytecodeParser::build(org.graalvm.compiler.nodes.FixedWithNextNode*, org.graalvm.compiler.java.FrameStateBuilder*)+0x9d6
      C [libjvmcicompiler.so+0x12a5e8e] void org.graalvm.compiler.java.BytecodeParser::buildRootMethod()+0x16e
      C [libjvmcicompiler.so+0x12ed74e] void org.graalvm.compiler.java.GraphBuilderPhase::run(org.graalvm.compiler.nodes.StructuredGraph*, java.lang.Object*)+0x16e
      C [libjvmcicompiler.so+0x16f5e62] void org.graalvm.compiler.phases.BasePhase::apply(org.graalvm.compiler.nodes.StructuredGraph*, java.lang.Object*, bool)+0x342
      C [libjvmcicompiler.so+0x16fd658] void org.graalvm.compiler.phases.PhaseSuite::run(org.graalvm.compiler.nodes.StructuredGraph*, java.lang.Object*)+0x1c8
      C [libjvmcicompiler.so+0x16f5e62] void org.graalvm.compiler.phases.BasePhase::apply(org.graalvm.compiler.nodes.StructuredGraph*, java.lang.Object*, bool)+0x342
      C [libjvmcicompiler.so+0xf9b016] void org.graalvm.compiler.core.GraalCompiler::emitFrontEnd(org.graalvm.compiler.phases.util.Providers*, org.graalvm.compiler.phases.tiers.TargetProvider*, org.graalvm.compiler.nodes.StructuredGraph*, org.graalvm.compiler.phases.PhaseSuite*, org.graalvm.compiler.phases.OptimisticOptimizations*, jdk.vm.ci.meta.ProfilingInfo*,

            dnsimon Douglas Simon
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: