hotspot/src/share/vm/services/diagnosticCommand.cpp
changeset 13975 2f7431485cfa
parent 13728 882756847a04
child 13977 92de166c91b3
equal deleted inserted replaced
13951:3fc49366dc15 13975:2f7431485cfa
    41   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintSystemPropertiesDCmd>(true, false));
    41   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintSystemPropertiesDCmd>(true, false));
    42   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintVMFlagsDCmd>(true, false));
    42   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintVMFlagsDCmd>(true, false));
    43   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VMUptimeDCmd>(true, false));
    43   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VMUptimeDCmd>(true, false));
    44   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<SystemGCDCmd>(true, false));
    44   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<SystemGCDCmd>(true, false));
    45   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RunFinalizationDCmd>(true, false));
    45   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RunFinalizationDCmd>(true, false));
    46 #ifndef SERVICES_KERNEL   // Heap dumping not supported
    46 #if INCLUDE_SERVICES // Heap dumping supported
    47   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(true, false));
    47   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(true, false));
    48 #endif // SERVICES_KERNEL
    48 #endif // INCLUDE_SERVICES
    49   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(true, false));
    49   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(true, false));
    50   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(true, false));
    50   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(true, false));
    51 
    51 
    52   //Enhanced JMX Agent Support
    52   //Enhanced JMX Agent Support
    53   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<JMXStartRemoteDCmd>(true,false));
    53   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<JMXStartRemoteDCmd>(true,false));
   250   JavaCalls::call_static(&result, klass,
   250   JavaCalls::call_static(&result, klass,
   251                          vmSymbols::run_finalization_name(),
   251                          vmSymbols::run_finalization_name(),
   252                          vmSymbols::void_method_signature(), CHECK);
   252                          vmSymbols::void_method_signature(), CHECK);
   253 }
   253 }
   254 
   254 
   255 #ifndef SERVICES_KERNEL   // Heap dumping not supported
   255 #if INCLUDE_SERVICES // Heap dumping supported
   256 HeapDumpDCmd::HeapDumpDCmd(outputStream* output, bool heap) :
   256 HeapDumpDCmd::HeapDumpDCmd(outputStream* output, bool heap) :
   257                            DCmdWithParser(output, heap),
   257                            DCmdWithParser(output, heap),
   258   _filename("filename","Name of the dump file", "STRING",true),
   258   _filename("filename","Name of the dump file", "STRING",true),
   259   _all("-all", "Dump all objects, including unreachable objects",
   259   _all("-all", "Dump all objects, including unreachable objects",
   260        "BOOLEAN", false, "false") {
   260        "BOOLEAN", false, "false") {
   290     return dcmd->_dcmdparser.num_arguments();
   290     return dcmd->_dcmdparser.num_arguments();
   291   } else {
   291   } else {
   292     return 0;
   292     return 0;
   293   }
   293   }
   294 }
   294 }
   295 #endif // SERVICES_KERNEL
   295 #endif // INCLUDE_SERVICES
   296 
   296 
   297 ClassHistogramDCmd::ClassHistogramDCmd(outputStream* output, bool heap) :
   297 ClassHistogramDCmd::ClassHistogramDCmd(outputStream* output, bool heap) :
   298                                        DCmdWithParser(output, heap),
   298                                        DCmdWithParser(output, heap),
   299   _all("-all", "Inspect all objects, including unreachable objects",
   299   _all("-all", "Inspect all objects, including unreachable objects",
   300        "BOOLEAN", false, "false") {
   300        "BOOLEAN", false, "false") {