RFR: 8366875: CompileTaskTimeout should be reset for each iteration of RepeatCompilation

Emanuel Peter epeter at openjdk.org
Tue Sep 9 08:56:40 UTC 2025


On Fri, 5 Sep 2025 15:27:22 GMT, Manuel Hässig <mhaessig at openjdk.org> wrote:

> When running a debug JVM on Linux with a compile task timeout and repeated compilation, the execution will time out almost always because the timeout does not reset for repetitions of a compilation. The core of the compile task timeout is to limit the amount of time a single compilation can take. Thus, this PR resets the `CompileTaskTimeout` for every compilation when running with `-XX:RepeatCompilation=<n>` for n > 1.
> 
> This PR is stacked on top of #27094.
> 
> Testing:
>  - [x] Github Actions (failures are unrelated)
>  - [x] tier1, tier2, tier3 plus some additional internal testing

Looks reasonable :)

-------------

Marked as reviewed by epeter (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27120#pullrequestreview-3200195978


More information about the hotspot-compiler-dev mailing list