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

Test com/sun/net/httpserver/TcpNoDelayNotRequired.java run timeout with -Xcomp

XMLWordPrintable

    • 23
    • b23
    • generic
    • linux

      test command:
      jtreg -v:fail,error -nr -w tmp test/jdk/com/sun/net/httpserver/TcpNoDelayNotRequired.java

      with default -Xmixed, the testcase run finish in 3 second:
      $ time java -Dtest.src.path=/home/yansendao/git/jdk/test/jdk/com/sun/net/httpserver:/home/yansendao/git/jdk/test/lib -Dsun.net.httpserver.nodelay=false -cp tmp/classes/com/sun/net/httpserver/TcpNoDelayNotRequired.d/ TcpNoDelayNotRequired
      time 1156
      time 1122

      real 0m2.918s
      user 0m16.606s
      sys 0m0.692s


      with -Xcomp, the testcase run finish about 55 second:
      $ time java -Xcomp -Dtest.src.path=/home/yansendao/git/jdk/test/jdk/com/sun/net/httpserver:/home/yansendao/git/jdk/test/lib -Dsun.net.httpserver.nodelay=false -cp tmp/classes/com/sun/net/httpserver/TcpNoDelayNotRequired.d/ TcpNoDelayNotRequired
      time 12329
      time 12260

      real 0m55.083s
      user 0m55.714s
      sys 0m1.062s

      The timeout vaule set by testcase is 5 seconds. So this testcase run timeout with -Xcomp.

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: