8266967: debug.cpp utility find() should print Java Object fields.

Reviewed-by: sspitsyn, coleenp
This commit is contained in:
Kevin Walls 2021-06-07 22:26:13 +00:00
parent c7c77fd32b
commit 5e557d8650
4 changed files with 8 additions and 15 deletions

View file

@ -76,7 +76,6 @@ public:
virtual void do_field(fieldDescriptor* fd) = 0;
};
#ifndef PRODUCT
// Print fields.
// If "obj" argument to constructor is NULL, prints static fields, otherwise prints non-static fields.
class FieldPrinter: public FieldClosure {
@ -86,7 +85,6 @@ class FieldPrinter: public FieldClosure {
FieldPrinter(outputStream* st, oop obj = NULL) : _obj(obj), _st(st) {}
void do_field(fieldDescriptor* fd);
};
#endif // !PRODUCT
// Describes where oops are located in instances of this klass.
class OopMapBlock {
@ -1240,16 +1238,14 @@ public:
public:
// Printing
#ifndef PRODUCT
void print_on(outputStream* st) const;
#endif
void print_value_on(outputStream* st) const;
void oop_print_value_on(oop obj, outputStream* st);
#ifndef PRODUCT
void oop_print_on (oop obj, outputStream* st);
#ifndef PRODUCT
void print_dependent_nmethods(bool verbose = false);
bool is_dependent_nmethod(nmethod* nm);
bool verify_itable_index(int index);