comparison src/share/vm/services/management.cpp @ 4773:4f25538b54c9

7120511: Add diagnostic commands Reviewed-by: acorn, phh, dcubed, sspitsyn
author fparain
date Mon, 09 Jan 2012 10:27:24 +0100
parents 6c995c08526c
children bf864f701a4a
comparison
equal deleted inserted replaced
4754:66259eca2bf7 4773:4f25538b54c9
116 // This depends on the heap inspector 116 // This depends on the heap inspector
117 _optional_support.isSynchronizerUsageSupported = 1; 117 _optional_support.isSynchronizerUsageSupported = 1;
118 #endif // SERVICES_KERNEL 118 #endif // SERVICES_KERNEL
119 _optional_support.isThreadAllocatedMemorySupported = 1; 119 _optional_support.isThreadAllocatedMemorySupported = 1;
120 120
121 // Registration of the diagnostic commands
122 // First boolean argument specifies if the command is enabled
123 // Second boolean argument specifies if the command is hidden
121 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HelpDCmd>(true, false)); 124 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HelpDCmd>(true, false));
122 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VersionDCmd>(true, false)); 125 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VersionDCmd>(true, false));
126 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<CommandLineDCmd>(true, false));
127 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintSystemPropertiesDCmd>(true, false));
128 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintVMFlagsDCmd>(true, false));
129 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VMUptimeDCmd>(true, false));
130 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<SystemGCDCmd>(true, false));
131 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RunFinalizationDCmd>(true, false));
132 #ifndef SERVICES_KERNEL // Heap dumping not supported
133 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(true, false));
134 #endif // SERVICES_KERNEL
135 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(true, false));
136 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(true, false));
123 } 137 }
124 138
125 void Management::initialize(TRAPS) { 139 void Management::initialize(TRAPS) {
126 // Start the service thread 140 // Start the service thread
127 ServiceThread::initialize(); 141 ServiceThread::initialize();