46 // Management klasses
47 static InstanceKlass* _diagnosticCommandImpl_klass;
48 static InstanceKlass* _garbageCollectorExtImpl_klass;
49 static InstanceKlass* _garbageCollectorMXBean_klass;
50 static InstanceKlass* _gcInfo_klass;
51 static InstanceKlass* _managementFactoryHelper_klass;
52 static InstanceKlass* _memoryManagerMXBean_klass;
53 static InstanceKlass* _memoryPoolMXBean_klass;
54 static InstanceKlass* _memoryUsage_klass;
55 static InstanceKlass* _sensor_klass;
56 static InstanceKlass* _threadInfo_klass;
57 static InstanceKlass* load_and_initialize_klass(Symbol* sh, TRAPS);
58 static InstanceKlass* load_and_initialize_klass_or_null(Symbol* sh, TRAPS);
59 static InstanceKlass* initialize_klass(Klass* k, TRAPS);
60
61 public:
62 static void init();
63 static void initialize(TRAPS);
64
65 static jlong ticks_to_ms(jlong ticks) NOT_MANAGEMENT_RETURN_(0L);
66 static jlong timestamp() NOT_MANAGEMENT_RETURN_(0L);
67
68 static void* get_jmm_interface(int version);
69 static void get_optional_support(jmmOptionalSupport* support);
70
71 static void record_vm_startup_time(jlong begin, jlong duration)
72 NOT_MANAGEMENT_RETURN;
73 static void record_vm_init_completed() NOT_MANAGEMENT_RETURN;
74
75 static jlong begin_vm_creation_time() NOT_MANAGEMENT_RETURN_(0L);
76 static jlong vm_init_done_time() NOT_MANAGEMENT_RETURN_(0L);
77
78 // methods to return a Klass*.
79 static InstanceKlass* java_lang_management_ThreadInfo_klass(TRAPS);
80 static InstanceKlass* java_lang_management_MemoryUsage_klass(TRAPS)
81 NOT_MANAGEMENT_RETURN_(nullptr);
82 static InstanceKlass* java_lang_management_MemoryPoolMXBean_klass(TRAPS);
83 static InstanceKlass* java_lang_management_MemoryManagerMXBean_klass(TRAPS);
84 static InstanceKlass* java_lang_management_GarbageCollectorMXBean_klass(TRAPS);
85 static InstanceKlass* sun_management_ManagementFactoryHelper_klass(TRAPS)
|
46 // Management klasses
47 static InstanceKlass* _diagnosticCommandImpl_klass;
48 static InstanceKlass* _garbageCollectorExtImpl_klass;
49 static InstanceKlass* _garbageCollectorMXBean_klass;
50 static InstanceKlass* _gcInfo_klass;
51 static InstanceKlass* _managementFactoryHelper_klass;
52 static InstanceKlass* _memoryManagerMXBean_klass;
53 static InstanceKlass* _memoryPoolMXBean_klass;
54 static InstanceKlass* _memoryUsage_klass;
55 static InstanceKlass* _sensor_klass;
56 static InstanceKlass* _threadInfo_klass;
57 static InstanceKlass* load_and_initialize_klass(Symbol* sh, TRAPS);
58 static InstanceKlass* load_and_initialize_klass_or_null(Symbol* sh, TRAPS);
59 static InstanceKlass* initialize_klass(Klass* k, TRAPS);
60
61 public:
62 static void init();
63 static void initialize(TRAPS);
64
65 static jlong ticks_to_ms(jlong ticks) NOT_MANAGEMENT_RETURN_(0L);
66 static jlong ticks_to_us(jlong ticks) NOT_MANAGEMENT_RETURN_(0L);
67 static jlong timestamp() NOT_MANAGEMENT_RETURN_(0L);
68
69 static void* get_jmm_interface(int version);
70 static void get_optional_support(jmmOptionalSupport* support);
71
72 static void record_vm_startup_time(jlong begin, jlong duration)
73 NOT_MANAGEMENT_RETURN;
74 static void record_vm_init_completed() NOT_MANAGEMENT_RETURN;
75
76 static jlong begin_vm_creation_time() NOT_MANAGEMENT_RETURN_(0L);
77 static jlong vm_init_done_time() NOT_MANAGEMENT_RETURN_(0L);
78
79 // methods to return a Klass*.
80 static InstanceKlass* java_lang_management_ThreadInfo_klass(TRAPS);
81 static InstanceKlass* java_lang_management_MemoryUsage_klass(TRAPS)
82 NOT_MANAGEMENT_RETURN_(nullptr);
83 static InstanceKlass* java_lang_management_MemoryPoolMXBean_klass(TRAPS);
84 static InstanceKlass* java_lang_management_MemoryManagerMXBean_klass(TRAPS);
85 static InstanceKlass* java_lang_management_GarbageCollectorMXBean_klass(TRAPS);
86 static InstanceKlass* sun_management_ManagementFactoryHelper_klass(TRAPS)
|