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.