hotspot/src/share/vm/services/diagnosticCommand.cpp
changeset 26587 e8b28fa936af
parent 25051 8110ec6e7340
child 28363 047115468f16
equal deleted inserted replaced
26585:2048b8d90c91 26587:e8b28fa936af
    58   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassStatsDCmd>(full_export, true, false));
    58   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassStatsDCmd>(full_export, true, false));
    59 #endif // INCLUDE_SERVICES
    59 #endif // INCLUDE_SERVICES
    60   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(full_export, true, false));
    60   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(full_export, true, false));
    61   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RotateGCLogDCmd>(full_export, true, false));
    61   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RotateGCLogDCmd>(full_export, true, false));
    62   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassLoaderStatsDCmd>(full_export, true, false));
    62   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassLoaderStatsDCmd>(full_export, true, false));
       
    63   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<CompileQueueDCmd>(full_export, true, false));
       
    64   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<CodeListDCmd>(full_export, true, false));
       
    65   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<CodeCacheDCmd>(full_export, true, false));
    63 
    66 
    64   // Enhanced JMX Agent Support
    67   // Enhanced JMX Agent Support
    65   // These commands won't be exported via the DiagnosticCommandMBean until an
    68   // These commands won't be exported via the DiagnosticCommandMBean until an
    66   // appropriate permission is created for them
    69   // appropriate permission is created for them
    67   uint32_t jmx_agent_export_flags = DCmd_Source_Internal | DCmd_Source_AttachAPI;
    70   uint32_t jmx_agent_export_flags = DCmd_Source_Internal | DCmd_Source_AttachAPI;
   672   } else {
   675   } else {
   673     output()->print_cr("Target VM does not support GC log file rotation.");
   676     output()->print_cr("Target VM does not support GC log file rotation.");
   674   }
   677   }
   675 }
   678 }
   676 
   679 
       
   680 void CompileQueueDCmd::execute(DCmdSource source, TRAPS) {
       
   681   VM_PrintCompileQueue printCompileQueueOp(output());
       
   682   VMThread::execute(&printCompileQueueOp);
       
   683 }
       
   684 
       
   685 void CodeListDCmd::execute(DCmdSource source, TRAPS) {
       
   686   VM_PrintCodeList printCodeListOp(output());
       
   687   VMThread::execute(&printCodeListOp);
       
   688 }
       
   689 
       
   690 void CodeCacheDCmd::execute(DCmdSource source, TRAPS) {
       
   691   VM_PrintCodeCache printCodeCacheOp(output());
       
   692   VMThread::execute(&printCodeCacheOp);
       
   693 }
       
   694