mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8266967: debug.cpp utility find() should print Java Object fields.
Reviewed-by: sspitsyn, coleenp
This commit is contained in:
parent
c7c77fd32b
commit
5e557d8650
4 changed files with 8 additions and 15 deletions
|
@ -3306,8 +3306,6 @@ nmethod* InstanceKlass::lookup_osr_nmethod(const Method* m, int bci, int comp_le
|
|||
// -----------------------------------------------------------------------------------------------------
|
||||
// Printing
|
||||
|
||||
#ifndef PRODUCT
|
||||
|
||||
#define BULLET " - "
|
||||
|
||||
static const char* state_names[] = {
|
||||
|
@ -3457,16 +3455,12 @@ void InstanceKlass::print_on(outputStream* st) const {
|
|||
st->cr();
|
||||
}
|
||||
|
||||
#endif //PRODUCT
|
||||
|
||||
void InstanceKlass::print_value_on(outputStream* st) const {
|
||||
assert(is_klass(), "must be klass");
|
||||
if (Verbose || WizardMode) access_flags().print_on(st);
|
||||
name()->print_value_on(st);
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
|
||||
void FieldPrinter::do_field(fieldDescriptor* fd) {
|
||||
_st->print(BULLET);
|
||||
if (_obj == NULL) {
|
||||
|
@ -3524,6 +3518,8 @@ void InstanceKlass::oop_print_on(oop obj, outputStream* st) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
|
||||
bool InstanceKlass::verify_itable_index(int i) {
|
||||
int method_count = klassItable::method_count_for_interface(this);
|
||||
assert(i >= 0 && i < method_count, "index out of bounds");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue