JDK-8356171 : Increase timeout for testcases as preparation for change of default timeout factor
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: test
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-05-05
  • Updated: 2025-09-22
  • Resolved: 2025-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26Resolved
Related Reports
Duplicate :  
Description
This change tries to add timeout to individual testcases so that I am
able to run with a timeout factor of 1 in the future (JDK-8260555).

The first commit changes the timeout factor to 0.7, so that I can run
tests and test the change (it will finally be changed to 1.0). However,
this commit will be reverted before I integrate. I will also apply
copyright updates after the review.

In addition to changing the timeout factor, I have also created a
library call to parse the timeout factor from the java properties.

My approach has been to run all test, and afterwards updating those
that fails due to a timeout factor. The amount of updated testcases is
huge, and my strategy has been to quadruple the timeout if I could
not directly see that less was needed (thus the timeout will be the
same after JDK-8260555 is implemented).

After the review I will revert the timeout factor change as we first need an
updated jtreg, and it would also be nice if that change is small and
easily revertible. I will also add copyright updates after review.

These fixes have been created when I have plown through testcases:
JDK-8352719: Add an equals sign to the modules statement
JDK-8352709: Remove bad timing annotations from WhileOpTest.java
JDK-8352074: Test MemoryLeak.java seems not to test what it is supposed to test
CODETOOLS-7903937: JTREG uses timeout factor on socket timeout but not on KEEPALIVE
CODETOOLS-7903961: Make default timeout configurable

Sometime in the future I will also fix:
8260555: Change the default TIMEOUT_FACTOR from 4 to 1

for which I am awaiting:
CODETOOLS-7903961 that is fixed in jtreg 7.6, but we are still running 7.5.1+1

Comments
JDK-8356171 was instead solved by directly fixing JDK-8260555
22-09-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/25122 Date: 2025-05-08 14:51:24 +0000
08-05-2025