53 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(DCmd_Source_Internal | DCmd_Source_AttachAPI, true, false)); |
53 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(DCmd_Source_Internal | DCmd_Source_AttachAPI, true, false)); |
54 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(full_export, true, false)); |
54 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(full_export, true, false)); |
55 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassStatsDCmd>(full_export, true, false)); |
55 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassStatsDCmd>(full_export, true, false)); |
56 #endif // INCLUDE_SERVICES |
56 #endif // INCLUDE_SERVICES |
57 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(full_export, true, false)); |
57 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(full_export, true, false)); |
|
58 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RotateGCLogDCmd>(full_export, true, false)); |
58 |
59 |
59 // Enhanced JMX Agent Support |
60 // Enhanced JMX Agent Support |
60 // These commands won't be exported via the DiagnosticCommandMBean until an |
61 // These commands won't be exported via the DiagnosticCommandMBean until an |
61 // appropriate permission is created for them |
62 // appropriate permission is created for them |
62 uint32_t jmx_agent_export_flags = DCmd_Source_Internal | DCmd_Source_AttachAPI; |
63 uint32_t jmx_agent_export_flags = DCmd_Source_Internal | DCmd_Source_AttachAPI; |
657 |
658 |
658 void VMDynamicLibrariesDCmd::execute(DCmdSource source, TRAPS) { |
659 void VMDynamicLibrariesDCmd::execute(DCmdSource source, TRAPS) { |
659 os::print_dll_info(output()); |
660 os::print_dll_info(output()); |
660 output()->cr(); |
661 output()->cr(); |
661 } |
662 } |
|
663 |
|
664 void RotateGCLogDCmd::execute(DCmdSource source, TRAPS) { |
|
665 if (UseGCLogFileRotation) { |
|
666 VM_RotateGCLog rotateop(output()); |
|
667 VMThread::execute(&rotateop); |
|
668 } else { |
|
669 output()->print_cr("Target VM does not support GC log file rotation."); |
|
670 } |
|
671 } |
|
672 |