Mercurial > hg > truffle
annotate src/share/vm/services/jmm.h @ 14714:b602356a9cfc
additional canonicalizers for accesses and value nodes (improves number of implicit null checks)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Thu, 20 Mar 2014 17:15:36 +0100 |
parents | 1a899ea6b7ed |
children | 4ca6dc0799b6 |
rev | line source |
---|---|
0 | 1 /* |
10215
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
0 | 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 | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
7 * published by the Free Software Foundation. Oracle designates this |
0 | 8 * particular file as subject to the "Classpath" exception as provided |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
9 * by Oracle in the LICENSE file that accompanied this code. |
0 | 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
22 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
23 * questions. |
0 | 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 | |
46 enum { | |
47 JMM_VERSION_1 = 0x20010000, | |
48 JMM_VERSION_1_0 = 0x20010000, | |
49 JMM_VERSION_1_1 = 0x20010100, // JDK 6 | |
50 JMM_VERSION_1_2 = 0x20010200, // JDK 7 | |
4133 | 51 JMM_VERSION_1_2_1 = 0x20010201, // JDK 7 GA |
10215
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
52 JMM_VERSION_1_2_2 = 0x20010202, |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
53 JMM_VERSION = 0x20010203 |
0 | 54 }; |
55 | |
56 typedef struct { | |
57 unsigned int isLowMemoryDetectionSupported : 1; | |
58 unsigned int isCompilationTimeMonitoringSupported : 1; | |
59 unsigned int isThreadContentionMonitoringSupported : 1; | |
60 unsigned int isCurrentThreadCpuTimeSupported : 1; | |
61 unsigned int isOtherThreadCpuTimeSupported : 1; | |
62 unsigned int isBootClassPathSupported : 1; | |
63 unsigned int isObjectMonitorUsageSupported : 1; | |
64 unsigned int isSynchronizerUsageSupported : 1; | |
2100
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
65 unsigned int isThreadAllocatedMemorySupported : 1; |
10215
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
66 unsigned int isRemoteDiagnosticCommandsSupported : 1; |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
67 unsigned int : 22; |
0 | 68 } jmmOptionalSupport; |
69 | |
70 typedef enum { | |
71 JMM_CLASS_LOADED_COUNT = 1, /* Total number of loaded classes */ | |
72 JMM_CLASS_UNLOADED_COUNT = 2, /* Total number of unloaded classes */ | |
73 JMM_THREAD_TOTAL_COUNT = 3, /* Total number of threads that have been started */ | |
74 JMM_THREAD_LIVE_COUNT = 4, /* Current number of live threads */ | |
75 JMM_THREAD_PEAK_COUNT = 5, /* Peak number of live threads */ | |
76 JMM_THREAD_DAEMON_COUNT = 6, /* Current number of daemon threads */ | |
77 JMM_JVM_INIT_DONE_TIME_MS = 7, /* Time when the JVM finished initialization */ | |
78 JMM_COMPILE_TOTAL_TIME_MS = 8, /* Total accumulated time spent in compilation */ | |
79 JMM_GC_TIME_MS = 9, /* Total accumulated time spent in collection */ | |
80 JMM_GC_COUNT = 10, /* Total number of collections */ | |
12997
e4f478e7781b
8027294: Prepare hotspot for non TOD based uptime counter
jbachorik
parents:
10215
diff
changeset
|
81 JMM_JVM_UPTIME_MS = 11, /* The JVM uptime in milliseconds */ |
0 | 82 |
83 JMM_INTERNAL_ATTRIBUTE_INDEX = 100, | |
84 JMM_CLASS_LOADED_BYTES = 101, /* Number of bytes loaded instance classes */ | |
85 JMM_CLASS_UNLOADED_BYTES = 102, /* Number of bytes unloaded instance classes */ | |
86 JMM_TOTAL_CLASSLOAD_TIME_MS = 103, /* Accumulated VM class loader time (TraceClassLoadingTime) */ | |
87 JMM_VM_GLOBAL_COUNT = 104, /* Number of VM internal flags */ | |
88 JMM_SAFEPOINT_COUNT = 105, /* Total number of safepoints */ | |
89 JMM_TOTAL_SAFEPOINTSYNC_TIME_MS = 106, /* Accumulated time spent getting to safepoints */ | |
90 JMM_TOTAL_STOPPED_TIME_MS = 107, /* Accumulated time spent at safepoints */ | |
91 JMM_TOTAL_APP_TIME_MS = 108, /* Accumulated time spent in Java application */ | |
92 JMM_VM_THREAD_COUNT = 109, /* Current number of VM internal threads */ | |
93 JMM_CLASS_INIT_TOTAL_COUNT = 110, /* Number of classes for which initializers were run */ | |
94 JMM_CLASS_INIT_TOTAL_TIME_MS = 111, /* Accumulated time spent in class initializers */ | |
95 JMM_METHOD_DATA_SIZE_BYTES = 112, /* Size of method data in memory */ | |
96 JMM_CLASS_VERIFY_TOTAL_TIME_MS = 113, /* Accumulated time spent in class verifier */ | |
97 JMM_SHARED_CLASS_LOADED_COUNT = 114, /* Number of shared classes loaded */ | |
98 JMM_SHARED_CLASS_UNLOADED_COUNT = 115, /* Number of shared classes unloaded */ | |
99 JMM_SHARED_CLASS_LOADED_BYTES = 116, /* Number of bytes loaded shared classes */ | |
100 JMM_SHARED_CLASS_UNLOADED_BYTES = 117, /* Number of bytes unloaded shared classes */ | |
101 | |
102 JMM_OS_ATTRIBUTE_INDEX = 200, | |
103 JMM_OS_PROCESS_ID = 201, /* Process id of the JVM */ | |
104 JMM_OS_MEM_TOTAL_PHYSICAL_BYTES = 202, /* Physical memory size */ | |
105 | |
106 JMM_GC_EXT_ATTRIBUTE_INFO_SIZE = 401 /* the size of the GC specific attributes for a given GC memory manager */ | |
107 } jmmLongAttribute; | |
108 | |
109 typedef enum { | |
110 JMM_VERBOSE_GC = 21, | |
111 JMM_VERBOSE_CLASS = 22, | |
112 JMM_THREAD_CONTENTION_MONITORING = 23, | |
2100
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
113 JMM_THREAD_CPU_TIME = 24, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
114 JMM_THREAD_ALLOCATED_MEMORY = 25 |
0 | 115 } jmmBoolAttribute; |
116 | |
117 | |
118 enum { | |
119 JMM_THREAD_STATE_FLAG_SUSPENDED = 0x00100000, | |
120 JMM_THREAD_STATE_FLAG_NATIVE = 0x00400000 | |
121 }; | |
122 | |
123 #define JMM_THREAD_STATE_FLAG_MASK 0xFFF00000 | |
124 | |
125 typedef enum { | |
126 JMM_STAT_PEAK_THREAD_COUNT = 801, | |
127 JMM_STAT_THREAD_CONTENTION_COUNT = 802, | |
128 JMM_STAT_THREAD_CONTENTION_TIME = 803, | |
129 JMM_STAT_THREAD_CONTENTION_STAT = 804, | |
130 JMM_STAT_PEAK_POOL_USAGE = 805, | |
131 JMM_STAT_GC_STAT = 806 | |
132 } jmmStatisticType; | |
133 | |
134 typedef enum { | |
135 JMM_USAGE_THRESHOLD_HIGH = 901, | |
136 JMM_USAGE_THRESHOLD_LOW = 902, | |
137 JMM_COLLECTION_USAGE_THRESHOLD_HIGH = 903, | |
138 JMM_COLLECTION_USAGE_THRESHOLD_LOW = 904 | |
139 } jmmThresholdType; | |
140 | |
141 /* Should match what is allowed in globals.hpp */ | |
142 typedef enum { | |
143 JMM_VMGLOBAL_TYPE_UNKNOWN = 0, | |
144 JMM_VMGLOBAL_TYPE_JBOOLEAN = 1, | |
145 JMM_VMGLOBAL_TYPE_JSTRING = 2, | |
146 JMM_VMGLOBAL_TYPE_JLONG = 3 | |
147 } jmmVMGlobalType; | |
148 | |
149 typedef enum { | |
150 JMM_VMGLOBAL_ORIGIN_DEFAULT = 1, /* Default value */ | |
151 JMM_VMGLOBAL_ORIGIN_COMMAND_LINE = 2, /* Set at command line (or JNI invocation) */ | |
152 JMM_VMGLOBAL_ORIGIN_MANAGEMENT = 3, /* Set via management interface */ | |
153 JMM_VMGLOBAL_ORIGIN_ENVIRON_VAR = 4, /* Set via environment variables */ | |
154 JMM_VMGLOBAL_ORIGIN_CONFIG_FILE = 5, /* Set via config file (such as .hotspotrc) */ | |
155 JMM_VMGLOBAL_ORIGIN_ERGONOMIC = 6, /* Set via ergonomic */ | |
14189
1a899ea6b7ed
8031305: (hotspot) com.sun.management.VMOption is missing the ATTACH_ON_DEMAND origin
sla
parents:
12997
diff
changeset
|
156 JMM_VMGLOBAL_ORIGIN_ATTACH_ON_DEMAND = 7, /* Set via attach */ |
0 | 157 JMM_VMGLOBAL_ORIGIN_OTHER = 99 /* Set via some other mechanism */ |
158 } jmmVMGlobalOrigin; | |
159 | |
160 typedef struct { | |
161 jstring name; | |
162 jvalue value; | |
163 jmmVMGlobalType type; /* Data type */ | |
164 jmmVMGlobalOrigin origin; /* Default or non-default value */ | |
165 unsigned int writeable : 1; /* dynamically writeable */ | |
166 unsigned int external : 1; /* external supported interface */ | |
167 unsigned int reserved : 30; | |
168 void *reserved1; | |
169 void *reserved2; | |
170 } jmmVMGlobal; | |
171 | |
172 typedef struct { | |
173 const char* name; | |
174 char type; | |
175 const char* description; | |
176 } jmmExtAttributeInfo; | |
177 | |
178 /* Caller has to set the following fields before calling GetLastGCStat | |
179 * o usage_before_gc - array of MemoryUsage objects | |
180 * o usage_after_gc - array of MemoryUsage objects | |
181 * o gc_ext_attribute_values_size - size of gc_ext_atttribute_values array | |
182 * o gc_ext_attribtue_values - array of jvalues | |
183 */ | |
184 typedef struct { | |
185 jlong gc_index; /* Index of the collections */ | |
186 jlong start_time; /* Start time of the GC */ | |
187 jlong end_time; /* End time of the GC */ | |
188 jobjectArray usage_before_gc; /* Memory usage array before GC */ | |
189 jobjectArray usage_after_gc; /* Memory usage array after GC */ | |
190 jint gc_ext_attribute_values_size; /* set by the caller of GetGCStat */ | |
191 jvalue* gc_ext_attribute_values; /* Array of jvalue for GC extension attributes */ | |
192 jint num_gc_ext_attributes; /* number of GC extension attribute values s are filled */ | |
193 /* -1 indicates gc_ext_attribute_values is not big enough */ | |
194 } jmmGCStat; | |
195 | |
4133 | 196 typedef struct { |
10215
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
197 const char* name; /* Name of the diagnostic command */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
198 const char* description; /* Short description */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
199 const char* impact; /* Impact on the JVM */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
200 const char* permission_class; /* Class name of the required permission if any */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
201 const char* permission_name; /* Permission name of the required permission if any */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
202 const char* permission_action; /* Action name of the required permission if any*/ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
203 int num_arguments; /* Number of supported options or arguments */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
204 jboolean enabled; /* True if the diagnostic command can be invoked, false otherwise */ |
4133 | 205 } dcmdInfo; |
206 | |
207 typedef struct { | |
10215
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
208 const char* name; /* Option/Argument name*/ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
209 const char* description; /* Short description */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
210 const char* type; /* Type: STRING, BOOLEAN, etc. */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
211 const char* default_string; /* Default value in a parsable string */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
212 jboolean mandatory; /* True if the option/argument is mandatory */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
213 jboolean option; /* True if it is an option, false if it is an argument */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
214 /* (see diagnosticFramework.hpp for option/argument definitions) */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
215 jboolean multiple; /* True if the option can be specified several time */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
216 int position; /* Expected position for this argument (this field is */ |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
217 /* meaningless for options) */ |
4133 | 218 } dcmdArgInfo; |
219 | |
0 | 220 typedef struct jmmInterface_1_ { |
221 void* reserved1; | |
222 void* reserved2; | |
223 | |
224 jint (JNICALL *GetVersion) (JNIEnv *env); | |
225 | |
226 jint (JNICALL *GetOptionalSupport) (JNIEnv *env, | |
227 jmmOptionalSupport* support_ptr); | |
228 | |
229 /* This is used by JDK 6 and earlier. | |
230 * For JDK 7 and after, use GetInputArgumentArray. | |
231 */ | |
232 jobject (JNICALL *GetInputArguments) (JNIEnv *env); | |
233 | |
234 jint (JNICALL *GetThreadInfo) (JNIEnv *env, | |
235 jlongArray ids, | |
236 jint maxDepth, | |
237 jobjectArray infoArray); | |
238 jobjectArray (JNICALL *GetInputArgumentArray) (JNIEnv *env); | |
239 | |
240 jobjectArray (JNICALL *GetMemoryPools) (JNIEnv* env, jobject mgr); | |
241 | |
242 jobjectArray (JNICALL *GetMemoryManagers) (JNIEnv* env, jobject pool); | |
243 | |
244 jobject (JNICALL *GetMemoryPoolUsage) (JNIEnv* env, jobject pool); | |
245 jobject (JNICALL *GetPeakMemoryPoolUsage) (JNIEnv* env, jobject pool); | |
246 | |
2100
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
247 void (JNICALL *GetThreadAllocatedMemory) |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
248 (JNIEnv *env, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
249 jlongArray ids, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
250 jlongArray sizeArray); |
0 | 251 |
252 jobject (JNICALL *GetMemoryUsage) (JNIEnv* env, jboolean heap); | |
253 | |
254 jlong (JNICALL *GetLongAttribute) (JNIEnv *env, jobject obj, jmmLongAttribute att); | |
255 jboolean (JNICALL *GetBoolAttribute) (JNIEnv *env, jmmBoolAttribute att); | |
256 jboolean (JNICALL *SetBoolAttribute) (JNIEnv *env, jmmBoolAttribute att, jboolean flag); | |
257 | |
258 jint (JNICALL *GetLongAttributes) (JNIEnv *env, | |
259 jobject obj, | |
260 jmmLongAttribute* atts, | |
261 jint count, | |
262 jlong* result); | |
263 | |
264 jobjectArray (JNICALL *FindCircularBlockedThreads) (JNIEnv *env); | |
2100
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
265 |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
266 // Not used in JDK 6 or JDK 7 |
0 | 267 jlong (JNICALL *GetThreadCpuTime) (JNIEnv *env, jlong thread_id); |
268 | |
269 jobjectArray (JNICALL *GetVMGlobalNames) (JNIEnv *env); | |
270 jint (JNICALL *GetVMGlobals) (JNIEnv *env, | |
271 jobjectArray names, | |
272 jmmVMGlobal *globals, | |
273 jint count); | |
274 | |
275 jint (JNICALL *GetInternalThreadTimes) (JNIEnv *env, | |
276 jobjectArray names, | |
277 jlongArray times); | |
278 | |
279 jboolean (JNICALL *ResetStatistic) (JNIEnv *env, | |
280 jvalue obj, | |
281 jmmStatisticType type); | |
282 | |
283 void (JNICALL *SetPoolSensor) (JNIEnv *env, | |
284 jobject pool, | |
285 jmmThresholdType type, | |
286 jobject sensor); | |
287 | |
288 jlong (JNICALL *SetPoolThreshold) (JNIEnv *env, | |
289 jobject pool, | |
290 jmmThresholdType type, | |
291 jlong threshold); | |
292 jobject (JNICALL *GetPoolCollectionUsage) (JNIEnv* env, jobject pool); | |
293 | |
294 jint (JNICALL *GetGCExtAttributeInfo) (JNIEnv *env, | |
295 jobject mgr, | |
296 jmmExtAttributeInfo *ext_info, | |
297 jint count); | |
298 void (JNICALL *GetLastGCStat) (JNIEnv *env, | |
299 jobject mgr, | |
300 jmmGCStat *gc_stat); | |
2100
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
301 |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
302 jlong (JNICALL *GetThreadCpuTimeWithKind) |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
303 (JNIEnv *env, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
304 jlong thread_id, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
305 jboolean user_sys_cpu_time); |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
306 void (JNICALL *GetThreadCpuTimesWithKind) |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
307 (JNIEnv *env, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
308 jlongArray ids, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
309 jlongArray timeArray, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
310 jboolean user_sys_cpu_time); |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
311 |
0 | 312 jint (JNICALL *DumpHeap0) (JNIEnv *env, |
313 jstring outputfile, | |
314 jboolean live); | |
2100
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
315 jobjectArray (JNICALL *FindDeadlocks) (JNIEnv *env, |
b1a2afa37ec4
7003271: Hotspot should track cumulative Java heap bytes allocated on a per-thread basis
phh
parents:
1972
diff
changeset
|
316 jboolean object_monitors_only); |
0 | 317 void (JNICALL *SetVMGlobal) (JNIEnv *env, |
318 jstring flag_name, | |
319 jvalue new_value); | |
320 void* reserved6; | |
321 jobjectArray (JNICALL *DumpThreads) (JNIEnv *env, | |
322 jlongArray ids, | |
323 jboolean lockedMonitors, | |
324 jboolean lockedSynchronizers); | |
3356
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
2100
diff
changeset
|
325 void (JNICALL *SetGCNotificationEnabled) (JNIEnv *env, |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
2100
diff
changeset
|
326 jobject mgr, |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
2100
diff
changeset
|
327 jboolean enabled); |
4133 | 328 jobjectArray (JNICALL *GetDiagnosticCommands) (JNIEnv *env); |
329 void (JNICALL *GetDiagnosticCommandInfo) | |
330 (JNIEnv *env, | |
331 jobjectArray cmds, | |
332 dcmdInfo *infoArray); | |
333 void (JNICALL *GetDiagnosticCommandArgumentsInfo) | |
334 (JNIEnv *env, | |
335 jstring commandName, | |
336 dcmdArgInfo *infoArray); | |
337 jstring (JNICALL *ExecuteDiagnosticCommand) | |
338 (JNIEnv *env, | |
339 jstring command); | |
10215
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
340 void (JNICALL *SetDiagnosticFrameworkNotificationEnabled) |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
341 (JNIEnv *env, |
31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
4133
diff
changeset
|
342 jboolean enabled); |
0 | 343 } JmmInterface; |
344 | |
345 #ifdef __cplusplus | |
346 } /* extern "C" */ | |
347 #endif /* __cplusplus */ | |
348 | |
349 #endif /* !_JAVA_JMM_H_ */ |