1 /*
2 * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 #ifndef _JAVA_JMM_H_
27 #define _JAVA_JMM_H_
28
29 /*
30 * This is a private interface used by JDK for JVM monitoring
31 * and management.
32 *
33 * Bump the version number when either of the following happens:
34 *
35 * 1. There is a change in functions in JmmInterface.
36 *
37 * 2. There is a change in the contract between VM and Java classes.
38 */
39
40 #include "jni.h"
41
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45
268 void* reserved5;
269 jint (JNICALL *DumpHeap0) (JNIEnv *env,
270 jstring outputfile,
271 jboolean live);
272 jobjectArray (JNICALL *FindDeadlocks) (JNIEnv *env, jboolean object_monitors_only);
273 void (JNICALL *SetVMGlobal) (JNIEnv *env,
274 jstring flag_name,
275 jvalue new_value);
276 void* reserved6;
277 jobjectArray (JNICALL *DumpThreads) (JNIEnv *env,
278 jlongArray ids,
279 jboolean lockedMonitors,
280 jboolean lockedSynchronizers);
281 } JmmInterface;
282
283 #ifdef __cplusplus
284 } /* extern "C" */
285 #endif /* __cplusplus */
286
287 #endif /* !_JAVA_JMM_H_ */
|
1 /*
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 #ifndef SHARE_VM_SERVICES_JMM_H
27 #define SHARE_VM_SERVICES_JMM_H
28
29 #ifndef _JAVA_JMM_H_
30 #define _JAVA_JMM_H_
31
32 /*
33 * This is a private interface used by JDK for JVM monitoring
34 * and management.
35 *
36 * Bump the version number when either of the following happens:
37 *
38 * 1. There is a change in functions in JmmInterface.
39 *
40 * 2. There is a change in the contract between VM and Java classes.
41 */
42
43 #include "jni.h"
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
271 void* reserved5;
272 jint (JNICALL *DumpHeap0) (JNIEnv *env,
273 jstring outputfile,
274 jboolean live);
275 jobjectArray (JNICALL *FindDeadlocks) (JNIEnv *env, jboolean object_monitors_only);
276 void (JNICALL *SetVMGlobal) (JNIEnv *env,
277 jstring flag_name,
278 jvalue new_value);
279 void* reserved6;
280 jobjectArray (JNICALL *DumpThreads) (JNIEnv *env,
281 jlongArray ids,
282 jboolean lockedMonitors,
283 jboolean lockedSynchronizers);
284 } JmmInterface;
285
286 #ifdef __cplusplus
287 } /* extern "C" */
288 #endif /* __cplusplus */
289
290 #endif /* !_JAVA_JMM_H_ */
291
292 #endif // SHARE_VM_SERVICES_JMM_H
|