RFR: 8332006: com/sun/net/httpserver/TcpNoDelayNotRequired.java run timeout with -Xcomp
Jaikiran Pai
jpai at openjdk.org
Thu May 9 23:56:02 UTC 2024
On Thu, 9 May 2024 16:44:23 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi,
> The testcase TcpNoDelayNotRequired.java run timeout with -Xcomp jvm options. With -Xcomp jvm options, the jvm consumes a lot of time to compile the java code, but the timeout value is set to 5 second.
>
> I think it's 3 method to solve this timeout issue.
>
> 1. Change timeout value from 5 to 60 or more.
> 2. Problemlist this testcase in `test/hotspot/jtreg/ProblemList-Xcomp.txt`
> 3. Set this testcase `@requires vm.flagless`, so this testcase will be skiped when set jvm options -Xcomp
>
> Maybe the 3rd method seems more reasonable.
Hello @sendaoYan, the `vm.flagless` isn't meant for situations like these (where we don't spawn any processes within the test). For skipping tests when `-Xcomp` is enabled (which we have done for some other test cases in the past), you can use `@requires vm.compMode != "Xcomp"`
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19159#issuecomment-2103617302
More information about the net-dev
mailing list