hotspot/src/share/vm/services/management.cpp
changeset 11441 a89f443814cd
parent 11254 e2dd3c32a7cb
child 11591 854c0dff3844
equal deleted inserted replaced
11422:fcd6a1948f57 11441:a89f443814cd
   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();