On Sat, 3 Jan 2026 02:08:21 GMT, SendaoYan <[email protected]> wrote: >> Hi all, >> >> The test >> test/jdk/java/net/httpclient/TimeoutResponseBodyTest.java#retriesEnabledForResponseFailure >> was observed timed out when run with jvm option -Xcomp. The failure >> details shows in [JDK-8374432](https://bugs.openjdk.org/browse/JDK-8374432). >> Maybe it need more time for C2 to compile the httpclient classes than the >> default mixed mode. >> >> So this PR read the timeout factor from jtreg, and apply the timeout factor >> to `REQUEST_TIMEOUT` by multiply it. Change has been verified locally by run >> the related tests >> test/jdk/java/net/httpclient/TimeoutResponseHeaderTest.java and >> test/jdk/java/net/httpclient/TimeoutResponseBodyTest.java both with -Xmixed >> and -Xcomp. Test-fix only, no risk, > > SendaoYan has updated the pull request incrementally with one additional > commit since the last revision: > > use "jdk.test.lib.Utils.adjustTimeout"
Thanks so much, @sendaoYan! I've verified that `TimeoutResponseBodyTest` passes on 9c7e744eb35 with 50 repetitions with and without `-Xcomp` provided. ------------- Marked as reviewed by vyazici (Committer). PR Review: https://git.openjdk.org/jdk/pull/29012#pullrequestreview-3626203301
