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

[Graal] Implement basic type consistency checks for Low level MH intrinsics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 13
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b05

      Backports

        Description

        compiler/jsr292/InvokerSignatureMismatch.java fails with
        Thread[JVMCI CompilerThread0,9,system]: Compilation of compiler.jsr292.InvokerSignatureMismatch.mainLink(int) failed:
        org.graalvm.compiler.java.BytecodeParser$BytecodeParserError: java.lang.AssertionError
        at parsing compiler.jsr292.InvokerSignatureMismatch.bodyI(InvokerSignatureMismatch.java:51)
        at parsing java.base@13-internal/java.lang.invoke.MethodHandleHelper.linkToStatic(MethodHandleHelper.java:53)
        at parsing compiler.jsr292.InvokerSignatureMismatch.mainLink(InvokerSignatureMismatch.java:42)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.throwParserError(BytecodeParser.java:2435)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3189)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:2993)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:891)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.parseAndInlineCallee(BytecodeParser.java:2454)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.inline(BytecodeParser.java:2356)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.tryInline(BytecodeParser.java:2219)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.appendInvoke(BytecodeParser.java:1725)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.handleReplacedInvoke(BytecodeParser.java:1655)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.replacements.MethodHandlePlugin.handleInvoke(MethodHandlePlugin.java:112)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.tryNodePluginForInvocation(BytecodeParser.java:2198)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.appendInvoke(BytecodeParser.java:1704)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1476)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1456)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5020)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3184)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:2993)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:891)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.parseAndInlineCallee(BytecodeParser.java:2454)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.inline(BytecodeParser.java:2356)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.tryInline(BytecodeParser.java:2230)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.appendInvoke(BytecodeParser.java:1725)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1476)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1456)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5020)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3184)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:2993)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:891)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:785)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.GraphBuilderPhase$Instance.run(GraphBuilderPhase.java:95)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.GraphBuilderPhase.run(GraphBuilderPhase.java:59)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.GraphBuilderPhase.run(GraphBuilderPhase.java:43)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:197)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:139)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.phases.PhaseSuite.run(PhaseSuite.java:212)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:197)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:139)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.GraalCompiler.emitFrontEnd(GraalCompiler.java:213)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:144)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.GraalCompiler.compileGraph(GraalCompiler.java:129)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileHelper(HotSpotGraalCompiler.java:185)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compile(HotSpotGraalCompiler.java:198)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:190)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:98)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.core.CompilationWrapper.run(CompilationWrapper.java:177)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.CompilationTask.runCompilation(CompilationTask.java:339)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:138)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:105)
        at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(HotSpotJVMCIRuntime.java:524)
        Caused by: java.lang.AssertionError
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.FrameStateBuilder.verifyKind(FrameStateBuilder.java:703)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.FrameStateBuilder.loadLocal(FrameStateBuilder.java:718)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.loadLocal(BytecodeParser.java:3710)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:4865)
        at jdk.internal.vm.compiler@13-internal/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3184)
        ... 47 more

        when running with Graal as JIT mode.

        To reproduce run:
        > make run-test TEST="compiler/jsr292/InvokerSignatureMismatch.java" LOG=cmdlines TEST_VM_OPTS="-server -ea -esa -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal"

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jcm Jamsheed C M (Inactive)
                Reporter:
                epavlova Ekaterina Pavlova
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: