src/share/vm/services/management.cpp

changeset 3402
4f25538b54c9
parent 3342
6c995c08526c
child 3471
bf864f701a4a
     1.1 --- a/src/share/vm/services/management.cpp	Thu Jan 05 17:16:13 2012 -0500
     1.2 +++ b/src/share/vm/services/management.cpp	Mon Jan 09 10:27:24 2012 +0100
     1.3 @@ -118,8 +118,22 @@
     1.4  #endif // SERVICES_KERNEL
     1.5    _optional_support.isThreadAllocatedMemorySupported = 1;
     1.6  
     1.7 +  // Registration of the diagnostic commands
     1.8 +  // First boolean argument specifies if the command is enabled
     1.9 +  // Second boolean argument specifies if the command is hidden
    1.10    DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HelpDCmd>(true, false));
    1.11    DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VersionDCmd>(true, false));
    1.12 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<CommandLineDCmd>(true, false));
    1.13 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintSystemPropertiesDCmd>(true, false));
    1.14 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintVMFlagsDCmd>(true, false));
    1.15 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VMUptimeDCmd>(true, false));
    1.16 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<SystemGCDCmd>(true, false));
    1.17 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RunFinalizationDCmd>(true, false));
    1.18 +#ifndef SERVICES_KERNEL   // Heap dumping not supported
    1.19 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(true, false));
    1.20 +#endif // SERVICES_KERNEL
    1.21 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(true, false));
    1.22 +  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(true, false));
    1.23  }
    1.24  
    1.25  void Management::initialize(TRAPS) {

mercurial