RFR: 8328858: More runtime/stack/Stack0*.java fails intermittently on libgraal

Doug Simon dnsimon at openjdk.org
Sun Mar 24 10:59:39 UTC 2024


While [JDK-8328312](https://bugs.openjdk.org/browse/JDK-8328312) fixed libgraal failures on `runtime/stack/Stack011.java` and `runtime/stack/Stack012.java`, other `runtime/stack/Stack0*` tests still fail:

java.lang.Exception: TEST_RFE: no stack overflow thrown, need to try deeper recursion?
        at Stack013i.run(Stack013.java:127)
        at Stack013.run(Stack013.java:53)
java.lang.RuntimeException: Exception in the thread Thread[#22,Thread-2,5,]
        at Stack013.main(Stack013.java:98)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1575)
Caused by: java.lang.Exception: TEST_RFE: no stack overflow thrown, need to try deeper recursion?
        at Stack013i.run(Stack013.java:127)
        at Stack013.run(Stack013.java:53)


This PR mitigates such failures by bumping `depthToTry` by at least an order of magnitude.

The right long term fix for these tests is probably [JDK-8328859](https://bugs.openjdk.org/browse/JDK-8328859).

-------------

Commit messages:
 - increment depthToTry by significant amount

Changes: https://git.openjdk.org/jdk/pull/18465/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18465&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8328858
  Stats: 23 lines in 12 files changed: 0 ins; 0 del; 23 mod
  Patch: https://git.openjdk.org/jdk/pull/18465.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18465/head:pull/18465

PR: https://git.openjdk.org/jdk/pull/18465


More information about the hotspot-runtime-dev mailing list