void oopDesc::print_value_on(outputStream* st) const { oop obj = oop(this); if (this == NULL) { st->print("NULL"); } else if (java_lang_String::is_instance(obj)) { java_lang_String::print(obj, st); if (PrintOopAddress) print_address_on(st); } else { klass()->oop_print_value_on(obj, st); } }
void oopDesc::print_value_on(outputStream* st) const { oop obj = oop(this); if (this == NULL) { st->print("NULL"); } else if (java_lang_String::is_instance(obj)) { java_lang_String::print(obj, st); if (PrintOopAddress) print_address_on(st); #ifdef ASSERT } else if (!Universe::heap()->is_in(obj) || !Universe::heap()->is_in(klass())) { st->print("### BAD OOP %p ###", (address)obj); #endif //ASSERT } else { blueprint()->oop_print_value_on(obj, st); } }
void oopDesc::print_address() { print_address_on(tty); }