8160898: assert while replaying ciReplay file created using TieredStopAtLevel=1

Use highest available tier if no compilation level is specified in replay file.

Reviewed-by: zmajo
This commit is contained in:
Tobias Hartmann 2016-07-12 08:57:00 +02:00
parent 48d49a9522
commit e990410b51
2 changed files with 2 additions and 2 deletions

View file

@ -490,7 +490,8 @@ class CompileReplay : public StackObj {
int comp_level = parse_int(comp_level_label);
// old version w/o comp_level
if (had_error() && (error_message() == comp_level_label)) {
comp_level = CompLevel_full_optimization;
// use highest available tier
comp_level = TieredCompilation ? TieredStopAtLevel : CompLevel_highest_tier;
}
if (!is_valid_comp_level(comp_level)) {
return;

View file

@ -29,7 +29,6 @@
## @summary testing of ciReplay with using generated by VM replay.txt w/o comp_level
## @author igor.ignatyev@oracle.com
## @requires vm.flightRecorder != true
## @ignore 8157984
## @run shell TestVM_no_comp_level.sh
##