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

[AOT] Incorrect scheduling of constant replacement nodes

XMLWordPrintable

      build-bootmodules.sh hits the problem compiling a couple of methods from BigInteger:

      Error: Failed compilation: java.math.BigInteger.multiply(Ljava/math/BigInteger;)Ljava/math/BigInteger;: org.graalvm.compiler.graph.GraalGraphError: Invalid frame state 125|FrameState@-6[INVALID_FRAMESTATE_BCI] associated with a side effect in org.graalvm.compiler.hotspot.replacements.BigIntegerSubstitutions.multiplyToLenStatic(int[], int, int[], int, int[]) at a position that cannot be deoptimized to
      at parsing platform/jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.hotspot.HotSpotBackend.multiplyToLenStub(HotSpotBackend.java:170) [bci: 14]
      at parsing platform/jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.hotspot.replacements.BigIntegerSubstitutions.multiplyToLenStatic(BigIntegerSubstitutions.java:50) [bci: 55]
      at parsing java.base@10-internal/java.math.BigInteger.multiplyToLen(BigInteger.java:1662) [bci: 16]
      at parsing java.base@10-internal/java.math.BigInteger.multiply(BigInteger.java:1578) [bci: 137]
      at node: 646|ResolveMethodAndLoadCountersStubCall
      Error: Failed compilation: java.math.BigInteger.square()Ljava/math/BigInteger;: org.graalvm.compiler.graph.GraalGraphError: Invalid frame state 130|FrameState@-6[INVALID_FRAMESTATE_BCI] associated with a side effect in org.graalvm.compiler.hotspot.replacements.BigIntegerSubstitutions.implSquareToLen(int[], int, int[], int) at a position that cannot be deoptimized to
      at parsing platform/jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.hotspot.HotSpotBackend.implSquareToLen(HotSpotBackend.java:219) [bci: 10]
      at parsing platform/jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.hotspot.replacements.BigIntegerSubstitutions.implSquareToLen(BigIntegerSubstitutions.java:83) [bci: 10]
      at parsing java.base@10-internal/java.math.BigInteger.squareToLen(BigInteger.java:2008) [bci: 29]
      at node: 753|ResolveMethodAndLoadCountersStubCall

            iveresov Igor Veresov
            iveresov Igor Veresov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: