mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
6820510: assertion failure with unloaded class in subnode.cpp
Reviewed-by: kvn
This commit is contained in:
parent
fface2e4ca
commit
a5396e1107
1 changed files with 2 additions and 2 deletions
|
@ -639,8 +639,8 @@ const Type *CmpPNode::sub( const Type *t1, const Type *t2 ) const {
|
||||||
int kps = (p0->isa_klassptr()?1:0) + (p1->isa_klassptr()?1:0);
|
int kps = (p0->isa_klassptr()?1:0) + (p1->isa_klassptr()?1:0);
|
||||||
if (klass0 && klass1 &&
|
if (klass0 && klass1 &&
|
||||||
kps != 1 && // both or neither are klass pointers
|
kps != 1 && // both or neither are klass pointers
|
||||||
!klass0->is_interface() && // do not trust interfaces
|
klass0->is_loaded() && !klass0->is_interface() && // do not trust interfaces
|
||||||
!klass1->is_interface()) {
|
klass1->is_loaded() && !klass1->is_interface()) {
|
||||||
bool unrelated_classes = false;
|
bool unrelated_classes = false;
|
||||||
// See if neither subclasses the other, or if the class on top
|
// See if neither subclasses the other, or if the class on top
|
||||||
// is precise. In either of these cases, the compare is known
|
// is precise. In either of these cases, the compare is known
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue