1 /*
2 * Copyright (c) 2003, 2017, 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
222 void* reserved1;
223 void* reserved2;
224
225 jint (JNICALL *GetVersion) (JNIEnv *env);
226
227 jint (JNICALL *GetOptionalSupport) (JNIEnv *env,
228 jmmOptionalSupport* support_ptr);
229
230 jint (JNICALL *GetThreadInfo) (JNIEnv *env,
231 jlongArray ids,
232 jint maxDepth,
233 jobjectArray infoArray);
234
235 jobjectArray (JNICALL *GetMemoryPools) (JNIEnv* env, jobject mgr);
236
237 jobjectArray (JNICALL *GetMemoryManagers) (JNIEnv* env, jobject pool);
238
239 jobject (JNICALL *GetMemoryPoolUsage) (JNIEnv* env, jobject pool);
240 jobject (JNICALL *GetPeakMemoryPoolUsage) (JNIEnv* env, jobject pool);
241
242 void (JNICALL *GetThreadAllocatedMemory)
243 (JNIEnv *env,
244 jlongArray ids,
245 jlongArray sizeArray);
246
247 jobject (JNICALL *GetMemoryUsage) (JNIEnv* env, jboolean heap);
248
249 jlong (JNICALL *GetLongAttribute) (JNIEnv *env, jobject obj, jmmLongAttribute att);
250 jboolean (JNICALL *GetBoolAttribute) (JNIEnv *env, jmmBoolAttribute att);
251 jboolean (JNICALL *SetBoolAttribute) (JNIEnv *env, jmmBoolAttribute att, jboolean flag);
252
253 jint (JNICALL *GetLongAttributes) (JNIEnv *env,
254 jobject obj,
255 jmmLongAttribute* atts,
256 jint count,
257 jlong* result);
258
259 jobjectArray (JNICALL *FindCircularBlockedThreads) (JNIEnv *env);
260
261 // Not used in JDK 6 or JDK 7
|
1 /*
2 * Copyright (c) 2003, 2019, 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
222 void* reserved1;
223 void* reserved2;
224
225 jint (JNICALL *GetVersion) (JNIEnv *env);
226
227 jint (JNICALL *GetOptionalSupport) (JNIEnv *env,
228 jmmOptionalSupport* support_ptr);
229
230 jint (JNICALL *GetThreadInfo) (JNIEnv *env,
231 jlongArray ids,
232 jint maxDepth,
233 jobjectArray infoArray);
234
235 jobjectArray (JNICALL *GetMemoryPools) (JNIEnv* env, jobject mgr);
236
237 jobjectArray (JNICALL *GetMemoryManagers) (JNIEnv* env, jobject pool);
238
239 jobject (JNICALL *GetMemoryPoolUsage) (JNIEnv* env, jobject pool);
240 jobject (JNICALL *GetPeakMemoryPoolUsage) (JNIEnv* env, jobject pool);
241
242 jlong (JNICALL *GetOneThreadAllocatedMemory)
243 (JNIEnv *env,
244 jlong thread_id);
245 void (JNICALL *GetThreadAllocatedMemory)
246 (JNIEnv *env,
247 jlongArray ids,
248 jlongArray sizeArray);
249
250 jobject (JNICALL *GetMemoryUsage) (JNIEnv* env, jboolean heap);
251
252 jlong (JNICALL *GetLongAttribute) (JNIEnv *env, jobject obj, jmmLongAttribute att);
253 jboolean (JNICALL *GetBoolAttribute) (JNIEnv *env, jmmBoolAttribute att);
254 jboolean (JNICALL *SetBoolAttribute) (JNIEnv *env, jmmBoolAttribute att, jboolean flag);
255
256 jint (JNICALL *GetLongAttributes) (JNIEnv *env,
257 jobject obj,
258 jmmLongAttribute* atts,
259 jint count,
260 jlong* result);
261
262 jobjectArray (JNICALL *FindCircularBlockedThreads) (JNIEnv *env);
263
264 // Not used in JDK 6 or JDK 7
|