mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8272703: StressSeed should be set via FLAG_SET_ERGO
Reviewed-by: chagedorn, thartmann
This commit is contained in:
parent
c43452859d
commit
66ce09f51e
1 changed files with 6 additions and 2 deletions
|
@ -773,8 +773,12 @@ Compile::Compile( ciEnv* ci_env, ciMethod* target, int osr_bci,
|
||||||
// If any phase is randomized for stress testing, seed random number
|
// If any phase is randomized for stress testing, seed random number
|
||||||
// generation and log the seed for repeatability.
|
// generation and log the seed for repeatability.
|
||||||
if (StressLCM || StressGCM || StressIGVN || StressCCP) {
|
if (StressLCM || StressGCM || StressIGVN || StressCCP) {
|
||||||
_stress_seed = FLAG_IS_DEFAULT(StressSeed) ?
|
if (FLAG_IS_DEFAULT(StressSeed) || (FLAG_IS_ERGO(StressSeed) && RepeatCompilation)) {
|
||||||
static_cast<uint>(Ticks::now().nanoseconds()) : StressSeed;
|
_stress_seed = static_cast<uint>(Ticks::now().nanoseconds());
|
||||||
|
FLAG_SET_ERGO(StressSeed, _stress_seed);
|
||||||
|
} else {
|
||||||
|
_stress_seed = StressSeed;
|
||||||
|
}
|
||||||
if (_log != NULL) {
|
if (_log != NULL) {
|
||||||
_log->elem("stress_test seed='%u'", _stress_seed);
|
_log->elem("stress_test seed='%u'", _stress_seed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue