aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/opto/subnode.cpp
diff options
context:
space:
mode:
authornever <none@none>2009-03-24 15:09:52 -0700
committernever <none@none>2009-03-24 15:09:52 -0700
commit332fb54806584e0855ecc66acfb4481e4ca4ca1e (patch)
tree087ab096833c626b18ef2fc8b72af7d15e9afad3 /src/share/vm/opto/subnode.cpp
parent1895b270919b7e24f877c747b761f39b62186409 (diff)
downloadjdk8u_hotspot-332fb54806584e0855ecc66acfb4481e4ca4ca1e.tar.gz
6820510: assertion failure with unloaded class in subnode.cpp
Reviewed-by: kvn
Diffstat (limited to 'src/share/vm/opto/subnode.cpp')
-rw-r--r--src/share/vm/opto/subnode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/opto/subnode.cpp b/src/share/vm/opto/subnode.cpp
index 260b5dc8a..d7c3cc87e 100644
--- a/src/share/vm/opto/subnode.cpp
+++ b/src/share/vm/opto/subnode.cpp
@@ -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);
if (klass0 && klass1 &&
kps != 1 && // both or neither are klass pointers
- !klass0->is_interface() && // do not trust interfaces
- !klass1->is_interface()) {
+ klass0->is_loaded() && !klass0->is_interface() && // do not trust interfaces
+ klass1->is_loaded() && !klass1->is_interface()) {
bool unrelated_classes = false;
// See if neither subclasses the other, or if the class on top
// is precise. In either of these cases, the compare is known