equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
837 } |
837 } |
838 static int num_arguments(); |
838 static int num_arguments(); |
839 virtual void execute(DCmdSource source, TRAPS); |
839 virtual void execute(DCmdSource source, TRAPS); |
840 }; |
840 }; |
841 |
841 |
|
842 class MetaspaceDCmd : public DCmd { |
|
843 public: |
|
844 MetaspaceDCmd(outputStream* output, bool heap); |
|
845 static const char* name() { |
|
846 return "VM.metaspace"; |
|
847 } |
|
848 static const char* description() { |
|
849 return "Prints the statistics for the metaspace"; |
|
850 } |
|
851 static const char* impact() { |
|
852 return "Medium: Depends on number of classes loaded."; |
|
853 } |
|
854 static const JavaPermission permission() { |
|
855 JavaPermission p = {"java.lang.management.ManagementPermission", |
|
856 "monitor", NULL}; |
|
857 return p; |
|
858 } |
|
859 static int num_arguments() { return 0; } |
|
860 virtual void execute(DCmdSource source, TRAPS); |
|
861 }; |
|
862 |
842 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP |
863 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP |