On Thu, 9 May 2024 16:44:23 GMT, SendaoYan <s...@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