Mercurial > hg > graal-compiler
diff src/share/vm/ci/ciKlass.cpp @ 12871:6171eb9da4fd
8007923: Tests on references fails
Reviewed-by: kvn, iveresov
author | twisti |
---|---|
date | Tue, 08 Oct 2013 19:57:28 -0700 |
parents | da91efe96a93 |
children | 096c224171c4 de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciKlass.cpp Tue Oct 08 07:08:27 2013 -0700 +++ b/src/share/vm/ci/ciKlass.cpp Tue Oct 08 19:57:28 2013 -0700 @@ -66,7 +66,9 @@ // ------------------------------------------------------------------ // ciKlass::is_subtype_of bool ciKlass::is_subtype_of(ciKlass* that) { - assert(is_loaded() && that->is_loaded(), "must be loaded"); + assert(this->is_loaded(), err_msg("must be loaded: %s", this->name()->as_quoted_ascii())); + assert(that->is_loaded(), err_msg("must be loaded: %s", that->name()->as_quoted_ascii())); + // Check to see if the klasses are identical. if (this == that) { return true; @@ -83,8 +85,8 @@ // ------------------------------------------------------------------ // ciKlass::is_subclass_of bool ciKlass::is_subclass_of(ciKlass* that) { - assert(is_loaded() && that->is_loaded(), "must be loaded"); - // Check to see if the klasses are identical. + assert(this->is_loaded(), err_msg("must be loaded: %s", this->name()->as_quoted_ascii())); + assert(that->is_loaded(), err_msg("must be loaded: %s", that->name()->as_quoted_ascii())); VM_ENTRY_MARK; Klass* this_klass = get_Klass();