mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8275775: Add jcmd VM.classes to print details of all classes
Reviewed-by: dholmes, iklam, stuefe
This commit is contained in:
parent
cde923dd47
commit
3f0684d0b8
6 changed files with 172 additions and 1 deletions
|
@ -547,6 +547,7 @@ public:
|
|||
bool is_in_error_state() const { return _init_state == initialization_error; }
|
||||
bool is_reentrant_initialization(Thread *thread) { return thread == _init_thread; }
|
||||
ClassState init_state() { return (ClassState)_init_state; }
|
||||
const char* init_state_name() const;
|
||||
bool is_rewritten() const { return (_misc_flags & _misc_rewritten) != 0; }
|
||||
|
||||
// is this a sealed class
|
||||
|
@ -1277,6 +1278,15 @@ inline u2 InstanceKlass::next_method_idnum() {
|
|||
}
|
||||
}
|
||||
|
||||
class PrintClassClosure : public KlassClosure {
|
||||
private:
|
||||
outputStream* _st;
|
||||
bool _verbose;
|
||||
public:
|
||||
PrintClassClosure(outputStream* st, bool verbose);
|
||||
|
||||
void do_klass(Klass* k);
|
||||
};
|
||||
|
||||
/* JNIid class for jfieldIDs only */
|
||||
class JNIid: public CHeapObj<mtClass> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue