-
Bug
-
Resolution: Fixed
-
P4
-
None
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.
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.