635 if (_hr->top() <= (HeapWord*)obj) { |
635 if (_hr->top() <= (HeapWord*)obj) { |
636 // Object is above top |
636 // Object is above top |
637 gclog_or_tty->print_cr("Object "PTR_FORMAT" in region " |
637 gclog_or_tty->print_cr("Object "PTR_FORMAT" in region " |
638 "["PTR_FORMAT", "PTR_FORMAT") is above " |
638 "["PTR_FORMAT", "PTR_FORMAT") is above " |
639 "top "PTR_FORMAT, |
639 "top "PTR_FORMAT, |
640 obj, _hr->bottom(), _hr->end(), _hr->top()); |
640 (void *)obj, _hr->bottom(), _hr->end(), _hr->top()); |
641 _failures = true; |
641 _failures = true; |
642 return; |
642 return; |
643 } |
643 } |
644 // Nmethod has at least one oop in the current region |
644 // Nmethod has at least one oop in the current region |
645 _has_oops_in_region = true; |
645 _has_oops_in_region = true; |
949 if (!g1->is_obj_dead_cond(obj, this, vo)) { |
949 if (!g1->is_obj_dead_cond(obj, this, vo)) { |
950 if (obj->is_oop()) { |
950 if (obj->is_oop()) { |
951 Klass* klass = obj->klass(); |
951 Klass* klass = obj->klass(); |
952 if (!klass->is_metaspace_object()) { |
952 if (!klass->is_metaspace_object()) { |
953 gclog_or_tty->print_cr("klass "PTR_FORMAT" of object "PTR_FORMAT" " |
953 gclog_or_tty->print_cr("klass "PTR_FORMAT" of object "PTR_FORMAT" " |
954 "not metadata", klass, obj); |
954 "not metadata", klass, (void *)obj); |
955 *failures = true; |
955 *failures = true; |
956 return; |
956 return; |
957 } else if (!klass->is_klass()) { |
957 } else if (!klass->is_klass()) { |
958 gclog_or_tty->print_cr("klass "PTR_FORMAT" of object "PTR_FORMAT" " |
958 gclog_or_tty->print_cr("klass "PTR_FORMAT" of object "PTR_FORMAT" " |
959 "not a klass", klass, obj); |
959 "not a klass", klass, (void *)obj); |
960 *failures = true; |
960 *failures = true; |
961 return; |
961 return; |
962 } else { |
962 } else { |
963 vl_cl.set_containing_obj(obj); |
963 vl_cl.set_containing_obj(obj); |
964 obj->oop_iterate_no_header(&vl_cl); |
964 obj->oop_iterate_no_header(&vl_cl); |