mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8029351: assert(bt != T_OBJECT) failed: Guard is incorrect in VM:defmeth
Replace test condition with reference to the proper predicate, encode folk wisdom into an assert Reviewed-by: twisti, coleenp
This commit is contained in:
parent
55ff73a553
commit
da079783f8
1 changed files with 2 additions and 5 deletions
|
@ -1863,11 +1863,8 @@ void GenerateOopMap::do_ldc(int bci) {
|
|||
constantTag tag = cp->tag_at(ldc.pool_index()); // idx is index in resolved_references
|
||||
BasicType bt = ldc.result_type();
|
||||
CellTypeState cts;
|
||||
if (tag.is_klass() ||
|
||||
tag.is_unresolved_klass() ||
|
||||
tag.is_string() ||
|
||||
tag.is_method_handle() ||
|
||||
tag.is_method_type()) {
|
||||
if (tag.basic_type() == T_OBJECT) {
|
||||
assert(!tag.is_string_index() && !tag.is_klass_index(), "Unexpected index tag");
|
||||
assert(bt == T_OBJECT, "Guard is incorrect");
|
||||
cts = CellTypeState::make_line_ref(bci);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue