mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7172843: C1: fix "assert(has_printable_bci()) failed: _printable_bci should have been set"
Reviewed-by: twisti
This commit is contained in:
parent
687fab1763
commit
20b16ea7aa
2 changed files with 12 additions and 5 deletions
|
@ -42,6 +42,11 @@ void Canonicalizer::set_canonical(Value x) {
|
|||
// the instruction stream (because the instruction list is embedded
|
||||
// in the instructions).
|
||||
if (canonical() != x) {
|
||||
#ifndef PRODUCT
|
||||
if (!x->has_printable_bci()) {
|
||||
x->set_printable_bci(bci());
|
||||
}
|
||||
#endif
|
||||
if (PrintCanonicalization) {
|
||||
PrintValueVisitor do_print_value;
|
||||
canonical()->input_values_do(&do_print_value);
|
||||
|
@ -677,8 +682,8 @@ void Canonicalizer::do_If(If* x) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
set_canonical(canon);
|
||||
set_bci(cmp->state_before()->bci());
|
||||
set_canonical(canon);
|
||||
}
|
||||
}
|
||||
} else if (l->as_InstanceOf() != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue