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

MathPowTest::computeRow recompiles infinitely

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 10
    • 10
    • hotspot

      When looking into whether we still need the Math.pow substitution on AMD64 after JDK-8134795 I saw that Graal recompiles one method over and over again:

      $ java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler -Djvmci.compiler=graal -XX:+BootstrapJVMCI MathPowTest
      ...
        77697 9793 % MathPowTest::computeRow @ 10 (45 bytes)
        77697 9794 % MathPowTest::computeRow @ 10 (45 bytes)
        77698 9795 % MathPowTest::computeRow @ 10 (45 bytes)
        77698 9796 % MathPowTest::computeRow @ 10 (45 bytes)
        77698 9797 MathPowTest::computeRow (45 bytes)
        77699 9798 MathPowTest::computeRow (45 bytes)
        77699 9799 MathPowTest::computeRow (45 bytes)
        77699 9800 % MathPowTest::computeRow @ 10 (45 bytes)

      The test case is attached to JDK-8134795.

      This only happens if the substitution is disabled.

            never Tom Rodriguez
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: