RFR: 8365909: [REDO] Add a compilation timeout flag to catch long running compilations

Manuel Hässig mhaessig at openjdk.org
Thu Aug 21 12:45:19 UTC 2025


This PR adds a timeout for compilation tasks based on timer signals on Linux debug builds.

This PR is a redo of #25872 with fixes for the failing test.

Testing:
 - [ ] Github Actions
 - [x] tier1,tier2 plus internal testing on all Oracle supproted platforms
 - [x] tier3,tier4 on linux-x64-debug
 - [x] tier1,tier2,tier3,tier4 on linux-x64-debug with `-XX:CompileTaskTimeout=60000`

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

Commit messages:
 - Fix test
 - Fix timeout test
 - Print with %zd
 - Print timeout properly
 - Use static buffer for method name
 - missed a dash
 - Address Christian's comments
 - Fix format string
 - Add test
 - Remove superfluous NOT_PRODUCT
 - ... and 11 more: https://git.openjdk.org/jdk/compare/5febc4e3...f86361c8

Changes: https://git.openjdk.org/jdk/pull/26882/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26882&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365909
  Stats: 281 lines in 8 files changed: 278 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/26882.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26882/head:pull/26882

PR: https://git.openjdk.org/jdk/pull/26882


More information about the hotspot-compiler-dev mailing list