# HG changeset patch # User twisti # Date 1381287448 25200 # Node ID 6171eb9da4fd977aa71bc08880e5e1a950bbbf2f # Parent 17cda06bcb7d14ade37b3c301f9e1717370381e4 8007923: Tests on references fails Reviewed-by: kvn, iveresov diff -r 17cda06bcb7d -r 6171eb9da4fd src/share/vm/ci/ciKlass.cpp --- 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(); diff -r 17cda06bcb7d -r 6171eb9da4fd src/share/vm/opto/escape.cpp --- a/src/share/vm/opto/escape.cpp Tue Oct 08 07:08:27 2013 -0700 +++ b/src/share/vm/opto/escape.cpp Tue Oct 08 19:57:28 2013 -0700 @@ -780,6 +780,7 @@ } } else { // Allocate instance if (cik->is_subclass_of(_compile->env()->Thread_klass()) || + cik->is_subclass_of(_compile->env()->Reference_klass()) || !cik->is_instance_klass() || // StressReflectiveCode cik->as_instance_klass()->has_finalizer()) { es = PointsToNode::GlobalEscape;