13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "jvm.h"
27 #include "classfile/classLoaderStats.hpp"
28 #include "classfile/compactHashtable.hpp"
29 #include "compiler/compileBroker.hpp"
30 #include "compiler/directivesParser.hpp"
31 #include "gc/shared/vmGCOperations.hpp"
32 #include "memory/resourceArea.hpp"
33 #include "oops/oop.inline.hpp"
34 #include "oops/typeArrayOop.inline.hpp"
35 #include "runtime/globals.hpp"
36 #include "runtime/javaCalls.hpp"
37 #include "runtime/os.hpp"
38 #include "services/diagnosticArgument.hpp"
39 #include "services/diagnosticCommand.hpp"
40 #include "services/diagnosticFramework.hpp"
41 #include "services/heapDumper.hpp"
42 #include "services/management.hpp"
43 #include "services/writeableFlags.hpp"
44 #include "utilities/debug.hpp"
45 #include "utilities/formatBuffer.hpp"
46 #include "utilities/macros.hpp"
47 #include "oops/objArrayOop.inline.hpp"
48
49
50 static void loadAgentModule(TRAPS) {
51 ResourceMark rm(THREAD);
52 HandleMark hm(THREAD);
53
54 JavaValue result(T_OBJECT);
55 Handle h_module_name = java_lang_String::create_from_str("jdk.management.agent", CHECK);
56 JavaCalls::call_static(&result,
57 SystemDictionary::module_Modules_klass(),
58 vmSymbols::loadModule_name(),
59 vmSymbols::loadModule_signature(),
60 h_module_name,
61 THREAD);
62 }
63
64 void DCmdRegistrant::register_dcmds(){
65 // Registration of the diagnostic commands
66 // First argument specifies which interfaces will export the command
67 // Second argument specifies if the command is enabled
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "jvm.h"
27 #include "classfile/classLoaderStats.hpp"
28 #include "classfile/compactHashtable.hpp"
29 #include "compiler/compileBroker.hpp"
30 #include "compiler/directivesParser.hpp"
31 #include "gc/shared/vmGCOperations.hpp"
32 #include "memory/resourceArea.hpp"
33 #include "oops/objArrayOop.inline.hpp"
34 #include "oops/oop.inline.hpp"
35 #include "oops/typeArrayOop.inline.hpp"
36 #include "runtime/globals.hpp"
37 #include "runtime/handles.inline.hpp"
38 #include "runtime/javaCalls.hpp"
39 #include "runtime/os.hpp"
40 #include "services/diagnosticArgument.hpp"
41 #include "services/diagnosticCommand.hpp"
42 #include "services/diagnosticFramework.hpp"
43 #include "services/heapDumper.hpp"
44 #include "services/management.hpp"
45 #include "services/writeableFlags.hpp"
46 #include "utilities/debug.hpp"
47 #include "utilities/formatBuffer.hpp"
48 #include "utilities/macros.hpp"
49
50
51 static void loadAgentModule(TRAPS) {
52 ResourceMark rm(THREAD);
53 HandleMark hm(THREAD);
54
55 JavaValue result(T_OBJECT);
56 Handle h_module_name = java_lang_String::create_from_str("jdk.management.agent", CHECK);
57 JavaCalls::call_static(&result,
58 SystemDictionary::module_Modules_klass(),
59 vmSymbols::loadModule_name(),
60 vmSymbols::loadModule_signature(),
61 h_module_name,
62 THREAD);
63 }
64
65 void DCmdRegistrant::register_dcmds(){
66 // Registration of the diagnostic commands
67 // First argument specifies which interfaces will export the command
68 // Second argument specifies if the command is enabled
|