Mercurial > hg > graal-compiler
diff src/share/vm/services/diagnosticCommand.hpp @ 14246:afa21611f918
8031304: Add dcmd to print all loaded dynamic libraries.
Summary: Adding VM.dynlibs as a dcmd to dump all loaded dynamic libraries.
Reviewed-by: sla, fparain, mgronlun, dsamersoff
author | farvidsson |
---|---|
date | Tue, 14 Jan 2014 15:27:01 +0100 |
parents | 996d1f2f056f |
children | 4ca6dc0799b6 |
line wrap: on
line diff
--- a/src/share/vm/services/diagnosticCommand.hpp Mon Jan 13 18:30:57 2014 -0500 +++ b/src/share/vm/services/diagnosticCommand.hpp Tue Jan 14 15:27:01 2014 +0100 @@ -132,6 +132,29 @@ virtual void execute(DCmdSource source, TRAPS); }; +class VMDynamicLibrariesDCmd : public DCmd { +public: + VMDynamicLibrariesDCmd(outputStream* output, bool heap); + static const char* name() { + return "VM.dynlibs"; + } + static const char* description() { + return "Print loaded dynamic libraries."; + } + static const char* impact() { + return "Low"; + } + static const JavaPermission permission() { + JavaPermission p = {"java.lang.management.ManagementPermission", + "monitor", NULL}; + return p; + } + static int num_arguments() { + return 0; + }; + virtual void execute(DCmdSource source, TRAPS); +}; + class VMUptimeDCmd : public DCmdWithParser { protected: DCmdArgument<bool> _date;