[jdk17u-dev] RFR: 8337102: JITTester: Fix breaks in static initialization blocks

Kirill Shirokov duke at openjdk.org
Wed Oct 29 17:52:08 UTC 2025


The backport verified on MacOS/Linux/Windows by manually running JITTester.

Verification involved modifying JITTester code to terminate with non-zero exit code when encountering specific compilation error (a break statement in a static initializer) in the generated code and enabling static initializer generation in configuration file in non-fixed version.

Without the fix typically the error reproduces during the first generation round.
With the fix, there is no error for 10s of rounds.

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

Commit messages:
 - Backport 4669e7b7b02636a8bd7381a9d401aaaf0c1d7294

Changes: https://git.openjdk.org/jdk17u-dev/pull/3941/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3941&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8337102
  Stats: 3 lines in 2 files changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/3941.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3941/head:pull/3941

PR: https://git.openjdk.org/jdk17u-dev/pull/3941


More information about the jdk-updates-dev mailing list