Skip to content

Commit fadb26f

Browse files
elifaslan1Paul Hohensee
authored andcommitted
8311588: C2: RepeatCompilation compiler directive does not choose stress seed randomly
Backport-of: 3465179458d844fec4d0496aa3d0c31b34c4c345
1 parent 22fef0a commit fadb26f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/opto/compile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ Compile::Compile( ciEnv* ci_env, ciMethod* target, int osr_bci,
775775
// If any phase is randomized for stress testing, seed random number
776776
// generation and log the seed for repeatability.
777777
if (StressLCM || StressGCM || StressIGVN || StressCCP) {
778-
if (FLAG_IS_DEFAULT(StressSeed) || (FLAG_IS_ERGO(StressSeed) && RepeatCompilation)) {
778+
if (FLAG_IS_DEFAULT(StressSeed) || (FLAG_IS_ERGO(StressSeed) && directive->RepeatCompilationOption)) {
779779
_stress_seed = static_cast<uint>(Ticks::now().nanoseconds());
780780
FLAG_SET_ERGO(StressSeed, _stress_seed);
781781
} else {

0 commit comments

Comments
 (0)