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

[TESTBUG] runtime/RedefineTests/RedefineRunningMethods.java needs a longer timeout

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27
    • CPU:
      x86_64
    • OS:
      solaris

      Backports

        Description

        The following test needs a slightly longer timeout when running
        in configuration with high parallelism:

            runtime/RedefineTests/RedefineRunningMethods.java

        I have run into timeouts with this test in my Thread-SMR
        stress testing where I run 16 parallel tests. When I changed
        the timeout from the default of 120 to 180, the test stopped
        timing out.

        $ hg diff test/hotspot/jtreg/runtime/RedefineTests/RedefineRunningMethods.java
        diff -r 7148f4f60366 test/hotspot/jtreg/runtime/RedefineTests/RedefineRunningMethods.java
        --- a/test/hotspot/jtreg/runtime/RedefineTests/RedefineRunningMethods.java Mon Aug 06 17:37:59 2018 -0400
        +++ b/test/hotspot/jtreg/runtime/RedefineTests/RedefineRunningMethods.java Mon Aug 06 17:41:32 2018 -0400
        @@ -31,7 +31,7 @@
          * java.instrument
          * jdk.jartool/sun.tools.jar
          * @run main RedefineClassHelper
        - * @run main/othervm -javaagent:redefineagent.jar -Xlog:redefine+class+iklass+add=trace,redefine+class+iklass+purge=trace,all=trace:file=all.log RedefineRunningMethods
        + * @run main/othervm/timeout=180 -javaagent:redefineagent.jar -Xlog:redefine+class+iklass+add=trace,redefine+class+iklass+purge=trace,all=trace:file=all.log RedefineRunningMethods
          */
         // Test is executed with full trace logging redirected to a file to ensure there is no crash during logging anonymous classes - see JDK-8197901

        I use the following timeoutFactor values:

        # jtreg default is "othervm", run-test default is "agentvm"
        TEST_MODE="othervm"
        case "$cfg" in
        release)
            TIMEOUT="4"
            ;;
        fastdebug)
            TIMEOUT="6"
            ;;
        slowdebug)
            TIMEOUT="12"
            ;;
        esac

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dcubed Daniel Daugherty
                  Reporter:
                  dcubed Daniel Daugherty
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: