Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/diagnosticCommand.cpp @ 4851:a42c07c38c47
7132515: Add dcmd to manage UnlockingCommercialFeature flag
Summary: Added dcmd to unlock or check status of UnlockingCommercialFeature flag
Reviewed-by: fparain, rottenha
author | dsamersoff |
---|---|
date | Wed, 25 Jan 2012 21:10:08 +0400 |
parents | 4f25538b54c9 |
children | 645162d94294 |
comparison
equal
deleted
inserted
replaced
4847:78dadb7b16ab | 4851:a42c07c38c47 |
---|---|
28 #include "services/diagnosticArgument.hpp" | 28 #include "services/diagnosticArgument.hpp" |
29 #include "services/diagnosticCommand.hpp" | 29 #include "services/diagnosticCommand.hpp" |
30 #include "services/diagnosticFramework.hpp" | 30 #include "services/diagnosticFramework.hpp" |
31 #include "services/heapDumper.hpp" | 31 #include "services/heapDumper.hpp" |
32 #include "services/management.hpp" | 32 #include "services/management.hpp" |
33 | |
34 void DCmdRegistrant::register_dcmds(){ | |
35 // Registration of the diagnostic commands | |
36 // First boolean argument specifies if the command is enabled | |
37 // Second boolean argument specifies if the command is hidden | |
38 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HelpDCmd>(true, false)); | |
39 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VersionDCmd>(true, false)); | |
40 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<CommandLineDCmd>(true, false)); | |
41 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintSystemPropertiesDCmd>(true, false)); | |
42 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintVMFlagsDCmd>(true, false)); | |
43 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VMUptimeDCmd>(true, false)); | |
44 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<SystemGCDCmd>(true, false)); | |
45 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RunFinalizationDCmd>(true, false)); | |
46 #ifndef SERVICES_KERNEL // Heap dumping not supported | |
47 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(true, false)); | |
48 #endif // SERVICES_KERNEL | |
49 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(true, false)); | |
50 DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(true, false)); | |
51 | |
52 } | |
53 | |
54 #ifndef HAVE_EXTRA_DCMD | |
55 void DCmdRegistrant::register_dcmds_ext(){ | |
56 // Do nothing here | |
57 } | |
58 #endif | |
59 | |
33 | 60 |
34 HelpDCmd::HelpDCmd(outputStream* output, bool heap) : DCmdWithParser(output, heap), | 61 HelpDCmd::HelpDCmd(outputStream* output, bool heap) : DCmdWithParser(output, heap), |
35 _all("-all", "Show help for all commands", "BOOLEAN", false, "false"), | 62 _all("-all", "Show help for all commands", "BOOLEAN", false, "false"), |
36 _cmd("command name", "The name of the command for which we want help", | 63 _cmd("command name", "The name of the command for which we want help", |
37 "STRING", false) { | 64 "STRING", false) { |