comparison src/share/vm/services/diagnosticCommand.cpp @ 6854:fb19af007ffc

7189254: Change makefiles for more flexibility to override defaults Summary: Change makefiles so that targets and parameters can be overridden by alternate makefiles. Reviewed-by: dholmes, coleenp
author jprovino
date Wed, 10 Oct 2012 14:35:58 -0400
parents da91efe96a93
children 9855b7e559ae
comparison
equal deleted inserted replaced
6830:81e878c53615 6854:fb19af007ffc
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") {