[jdk17u-dev] Integrated: 8311588: C2: RepeatCompilation compiler directive does not choose stress seed randomly
Elif Aslan
duke at openjdk.org
Thu Nov 13 21:12:42 UTC 2025
On Wed, 12 Nov 2025 00:04:24 GMT, Elif Aslan <duke at openjdk.org> wrote:
> Clean backport to make JDK-8319879 backporting cleaner. Ran Tier 1-2 on Al2, all passed. GHA tested as well.
> The compiler directive RepeatCompilation can be used to repeat compilations of specific methods, for example for Test::test():
>
> -XX:CompileCommand=RepeatCompilation,Test::test,1000
>
> When using this compiler directive in combination with StressIGVN/CCP/GCM/LCM, C2 only sets the stress seed once to a random value. Afterward, it keeps the seed for all repeated compilations. This should be changed to always select a random seed with each repetition (i.e. get the same behavior as the flag RepeatCompilation).
This pull request has now been integrated.
Changeset: fadb26fb
Author: Elif Aslan <elifasln at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/fadb26fbfa722692bda23cfa5a4e8599bce902d6
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8311588: C2: RepeatCompilation compiler directive does not choose stress seed randomly
Backport-of: 3465179458d844fec4d0496aa3d0c31b34c4c345
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/4172
More information about the jdk-updates-dev
mailing list