annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/jvmti.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 /*
jpayne@69 2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
jpayne@69 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jpayne@69 4 *
jpayne@69 5 * This code is free software; you can redistribute it and/or modify it
jpayne@69 6 * under the terms of the GNU General Public License version 2 only, as
jpayne@69 7 * published by the Free Software Foundation. Oracle designates this
jpayne@69 8 * particular file as subject to the "Classpath" exception as provided
jpayne@69 9 * by Oracle in the LICENSE file that accompanied this code.
jpayne@69 10 *
jpayne@69 11 * This code is distributed in the hope that it will be useful, but WITHOUT
jpayne@69 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jpayne@69 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jpayne@69 14 * version 2 for more details (a copy is included in the LICENSE file that
jpayne@69 15 * accompanied this code).
jpayne@69 16 *
jpayne@69 17 * You should have received a copy of the GNU General Public License version
jpayne@69 18 * 2 along with this work; if not, write to the Free Software Foundation,
jpayne@69 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jpayne@69 20 *
jpayne@69 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jpayne@69 22 * or visit www.oracle.com if you need additional information or have any
jpayne@69 23 * questions.
jpayne@69 24 */
jpayne@69 25
jpayne@69 26 /* AUTOMATICALLY GENERATED FILE - DO NOT EDIT */
jpayne@69 27
jpayne@69 28 /* Include file for the Java(tm) Virtual Machine Tool Interface */
jpayne@69 29
jpayne@69 30 #ifndef _JAVA_JVMTI_H_
jpayne@69 31 #define _JAVA_JVMTI_H_
jpayne@69 32
jpayne@69 33 #include "jni.h"
jpayne@69 34
jpayne@69 35 #ifdef __cplusplus
jpayne@69 36 extern "C" {
jpayne@69 37 #endif
jpayne@69 38
jpayne@69 39 enum {
jpayne@69 40 JVMTI_VERSION_1 = 0x30010000,
jpayne@69 41 JVMTI_VERSION_1_0 = 0x30010000,
jpayne@69 42 JVMTI_VERSION_1_1 = 0x30010100,
jpayne@69 43 JVMTI_VERSION_1_2 = 0x30010200,
jpayne@69 44 JVMTI_VERSION_9 = 0x30090000,
jpayne@69 45 JVMTI_VERSION_11 = 0x300B0000,
jpayne@69 46
jpayne@69 47 JVMTI_VERSION = 0x30000000 + (11 * 0x10000) + (0 * 0x100) + 0 /* version: 11.0.0 */
jpayne@69 48 };
jpayne@69 49
jpayne@69 50 JNIEXPORT jint JNICALL
jpayne@69 51 Agent_OnLoad(JavaVM *vm, char *options, void *reserved);
jpayne@69 52
jpayne@69 53 JNIEXPORT jint JNICALL
jpayne@69 54 Agent_OnAttach(JavaVM* vm, char* options, void* reserved);
jpayne@69 55
jpayne@69 56 JNIEXPORT void JNICALL
jpayne@69 57 Agent_OnUnload(JavaVM *vm);
jpayne@69 58
jpayne@69 59 /* Forward declaration of the environment */
jpayne@69 60
jpayne@69 61 struct _jvmtiEnv;
jpayne@69 62
jpayne@69 63 struct jvmtiInterface_1_;
jpayne@69 64
jpayne@69 65 #ifdef __cplusplus
jpayne@69 66 typedef _jvmtiEnv jvmtiEnv;
jpayne@69 67 #else
jpayne@69 68 typedef const struct jvmtiInterface_1_ *jvmtiEnv;
jpayne@69 69 #endif /* __cplusplus */
jpayne@69 70
jpayne@69 71 /* Derived Base Types */
jpayne@69 72
jpayne@69 73 typedef jobject jthread;
jpayne@69 74 typedef jobject jthreadGroup;
jpayne@69 75 typedef jlong jlocation;
jpayne@69 76 struct _jrawMonitorID;
jpayne@69 77 typedef struct _jrawMonitorID *jrawMonitorID;
jpayne@69 78 typedef struct JNINativeInterface_ jniNativeInterface;
jpayne@69 79
jpayne@69 80 /* Constants */
jpayne@69 81
jpayne@69 82
jpayne@69 83 /* Thread State Flags */
jpayne@69 84
jpayne@69 85 enum {
jpayne@69 86 JVMTI_THREAD_STATE_ALIVE = 0x0001,
jpayne@69 87 JVMTI_THREAD_STATE_TERMINATED = 0x0002,
jpayne@69 88 JVMTI_THREAD_STATE_RUNNABLE = 0x0004,
jpayne@69 89 JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER = 0x0400,
jpayne@69 90 JVMTI_THREAD_STATE_WAITING = 0x0080,
jpayne@69 91 JVMTI_THREAD_STATE_WAITING_INDEFINITELY = 0x0010,
jpayne@69 92 JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT = 0x0020,
jpayne@69 93 JVMTI_THREAD_STATE_SLEEPING = 0x0040,
jpayne@69 94 JVMTI_THREAD_STATE_IN_OBJECT_WAIT = 0x0100,
jpayne@69 95 JVMTI_THREAD_STATE_PARKED = 0x0200,
jpayne@69 96 JVMTI_THREAD_STATE_SUSPENDED = 0x100000,
jpayne@69 97 JVMTI_THREAD_STATE_INTERRUPTED = 0x200000,
jpayne@69 98 JVMTI_THREAD_STATE_IN_NATIVE = 0x400000,
jpayne@69 99 JVMTI_THREAD_STATE_VENDOR_1 = 0x10000000,
jpayne@69 100 JVMTI_THREAD_STATE_VENDOR_2 = 0x20000000,
jpayne@69 101 JVMTI_THREAD_STATE_VENDOR_3 = 0x40000000
jpayne@69 102 };
jpayne@69 103
jpayne@69 104 /* java.lang.Thread.State Conversion Masks */
jpayne@69 105
jpayne@69 106 enum {
jpayne@69 107 JVMTI_JAVA_LANG_THREAD_STATE_MASK = JVMTI_THREAD_STATE_TERMINATED | JVMTI_THREAD_STATE_ALIVE | JVMTI_THREAD_STATE_RUNNABLE | JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER | JVMTI_THREAD_STATE_WAITING | JVMTI_THREAD_STATE_WAITING_INDEFINITELY | JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT,
jpayne@69 108 JVMTI_JAVA_LANG_THREAD_STATE_NEW = 0,
jpayne@69 109 JVMTI_JAVA_LANG_THREAD_STATE_TERMINATED = JVMTI_THREAD_STATE_TERMINATED,
jpayne@69 110 JVMTI_JAVA_LANG_THREAD_STATE_RUNNABLE = JVMTI_THREAD_STATE_ALIVE | JVMTI_THREAD_STATE_RUNNABLE,
jpayne@69 111 JVMTI_JAVA_LANG_THREAD_STATE_BLOCKED = JVMTI_THREAD_STATE_ALIVE | JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER,
jpayne@69 112 JVMTI_JAVA_LANG_THREAD_STATE_WAITING = JVMTI_THREAD_STATE_ALIVE | JVMTI_THREAD_STATE_WAITING | JVMTI_THREAD_STATE_WAITING_INDEFINITELY,
jpayne@69 113 JVMTI_JAVA_LANG_THREAD_STATE_TIMED_WAITING = JVMTI_THREAD_STATE_ALIVE | JVMTI_THREAD_STATE_WAITING | JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT
jpayne@69 114 };
jpayne@69 115
jpayne@69 116 /* Thread Priority Constants */
jpayne@69 117
jpayne@69 118 enum {
jpayne@69 119 JVMTI_THREAD_MIN_PRIORITY = 1,
jpayne@69 120 JVMTI_THREAD_NORM_PRIORITY = 5,
jpayne@69 121 JVMTI_THREAD_MAX_PRIORITY = 10
jpayne@69 122 };
jpayne@69 123
jpayne@69 124 /* Heap Filter Flags */
jpayne@69 125
jpayne@69 126 enum {
jpayne@69 127 JVMTI_HEAP_FILTER_TAGGED = 0x4,
jpayne@69 128 JVMTI_HEAP_FILTER_UNTAGGED = 0x8,
jpayne@69 129 JVMTI_HEAP_FILTER_CLASS_TAGGED = 0x10,
jpayne@69 130 JVMTI_HEAP_FILTER_CLASS_UNTAGGED = 0x20
jpayne@69 131 };
jpayne@69 132
jpayne@69 133 /* Heap Visit Control Flags */
jpayne@69 134
jpayne@69 135 enum {
jpayne@69 136 JVMTI_VISIT_OBJECTS = 0x100,
jpayne@69 137 JVMTI_VISIT_ABORT = 0x8000
jpayne@69 138 };
jpayne@69 139
jpayne@69 140 /* Heap Reference Enumeration */
jpayne@69 141
jpayne@69 142 typedef enum {
jpayne@69 143 JVMTI_HEAP_REFERENCE_CLASS = 1,
jpayne@69 144 JVMTI_HEAP_REFERENCE_FIELD = 2,
jpayne@69 145 JVMTI_HEAP_REFERENCE_ARRAY_ELEMENT = 3,
jpayne@69 146 JVMTI_HEAP_REFERENCE_CLASS_LOADER = 4,
jpayne@69 147 JVMTI_HEAP_REFERENCE_SIGNERS = 5,
jpayne@69 148 JVMTI_HEAP_REFERENCE_PROTECTION_DOMAIN = 6,
jpayne@69 149 JVMTI_HEAP_REFERENCE_INTERFACE = 7,
jpayne@69 150 JVMTI_HEAP_REFERENCE_STATIC_FIELD = 8,
jpayne@69 151 JVMTI_HEAP_REFERENCE_CONSTANT_POOL = 9,
jpayne@69 152 JVMTI_HEAP_REFERENCE_SUPERCLASS = 10,
jpayne@69 153 JVMTI_HEAP_REFERENCE_JNI_GLOBAL = 21,
jpayne@69 154 JVMTI_HEAP_REFERENCE_SYSTEM_CLASS = 22,
jpayne@69 155 JVMTI_HEAP_REFERENCE_MONITOR = 23,
jpayne@69 156 JVMTI_HEAP_REFERENCE_STACK_LOCAL = 24,
jpayne@69 157 JVMTI_HEAP_REFERENCE_JNI_LOCAL = 25,
jpayne@69 158 JVMTI_HEAP_REFERENCE_THREAD = 26,
jpayne@69 159 JVMTI_HEAP_REFERENCE_OTHER = 27
jpayne@69 160 } jvmtiHeapReferenceKind;
jpayne@69 161
jpayne@69 162 /* Primitive Type Enumeration */
jpayne@69 163
jpayne@69 164 typedef enum {
jpayne@69 165 JVMTI_PRIMITIVE_TYPE_BOOLEAN = 90,
jpayne@69 166 JVMTI_PRIMITIVE_TYPE_BYTE = 66,
jpayne@69 167 JVMTI_PRIMITIVE_TYPE_CHAR = 67,
jpayne@69 168 JVMTI_PRIMITIVE_TYPE_SHORT = 83,
jpayne@69 169 JVMTI_PRIMITIVE_TYPE_INT = 73,
jpayne@69 170 JVMTI_PRIMITIVE_TYPE_LONG = 74,
jpayne@69 171 JVMTI_PRIMITIVE_TYPE_FLOAT = 70,
jpayne@69 172 JVMTI_PRIMITIVE_TYPE_DOUBLE = 68
jpayne@69 173 } jvmtiPrimitiveType;
jpayne@69 174
jpayne@69 175 /* Heap Object Filter Enumeration */
jpayne@69 176
jpayne@69 177 typedef enum {
jpayne@69 178 JVMTI_HEAP_OBJECT_TAGGED = 1,
jpayne@69 179 JVMTI_HEAP_OBJECT_UNTAGGED = 2,
jpayne@69 180 JVMTI_HEAP_OBJECT_EITHER = 3
jpayne@69 181 } jvmtiHeapObjectFilter;
jpayne@69 182
jpayne@69 183 /* Heap Root Kind Enumeration */
jpayne@69 184
jpayne@69 185 typedef enum {
jpayne@69 186 JVMTI_HEAP_ROOT_JNI_GLOBAL = 1,
jpayne@69 187 JVMTI_HEAP_ROOT_SYSTEM_CLASS = 2,
jpayne@69 188 JVMTI_HEAP_ROOT_MONITOR = 3,
jpayne@69 189 JVMTI_HEAP_ROOT_STACK_LOCAL = 4,
jpayne@69 190 JVMTI_HEAP_ROOT_JNI_LOCAL = 5,
jpayne@69 191 JVMTI_HEAP_ROOT_THREAD = 6,
jpayne@69 192 JVMTI_HEAP_ROOT_OTHER = 7
jpayne@69 193 } jvmtiHeapRootKind;
jpayne@69 194
jpayne@69 195 /* Object Reference Enumeration */
jpayne@69 196
jpayne@69 197 typedef enum {
jpayne@69 198 JVMTI_REFERENCE_CLASS = 1,
jpayne@69 199 JVMTI_REFERENCE_FIELD = 2,
jpayne@69 200 JVMTI_REFERENCE_ARRAY_ELEMENT = 3,
jpayne@69 201 JVMTI_REFERENCE_CLASS_LOADER = 4,
jpayne@69 202 JVMTI_REFERENCE_SIGNERS = 5,
jpayne@69 203 JVMTI_REFERENCE_PROTECTION_DOMAIN = 6,
jpayne@69 204 JVMTI_REFERENCE_INTERFACE = 7,
jpayne@69 205 JVMTI_REFERENCE_STATIC_FIELD = 8,
jpayne@69 206 JVMTI_REFERENCE_CONSTANT_POOL = 9
jpayne@69 207 } jvmtiObjectReferenceKind;
jpayne@69 208
jpayne@69 209 /* Iteration Control Enumeration */
jpayne@69 210
jpayne@69 211 typedef enum {
jpayne@69 212 JVMTI_ITERATION_CONTINUE = 1,
jpayne@69 213 JVMTI_ITERATION_IGNORE = 2,
jpayne@69 214 JVMTI_ITERATION_ABORT = 0
jpayne@69 215 } jvmtiIterationControl;
jpayne@69 216
jpayne@69 217 /* Class Status Flags */
jpayne@69 218
jpayne@69 219 enum {
jpayne@69 220 JVMTI_CLASS_STATUS_VERIFIED = 1,
jpayne@69 221 JVMTI_CLASS_STATUS_PREPARED = 2,
jpayne@69 222 JVMTI_CLASS_STATUS_INITIALIZED = 4,
jpayne@69 223 JVMTI_CLASS_STATUS_ERROR = 8,
jpayne@69 224 JVMTI_CLASS_STATUS_ARRAY = 16,
jpayne@69 225 JVMTI_CLASS_STATUS_PRIMITIVE = 32
jpayne@69 226 };
jpayne@69 227
jpayne@69 228 /* Event Enable/Disable */
jpayne@69 229
jpayne@69 230 typedef enum {
jpayne@69 231 JVMTI_ENABLE = 1,
jpayne@69 232 JVMTI_DISABLE = 0
jpayne@69 233 } jvmtiEventMode;
jpayne@69 234
jpayne@69 235 /* Extension Function/Event Parameter Types */
jpayne@69 236
jpayne@69 237 typedef enum {
jpayne@69 238 JVMTI_TYPE_JBYTE = 101,
jpayne@69 239 JVMTI_TYPE_JCHAR = 102,
jpayne@69 240 JVMTI_TYPE_JSHORT = 103,
jpayne@69 241 JVMTI_TYPE_JINT = 104,
jpayne@69 242 JVMTI_TYPE_JLONG = 105,
jpayne@69 243 JVMTI_TYPE_JFLOAT = 106,
jpayne@69 244 JVMTI_TYPE_JDOUBLE = 107,
jpayne@69 245 JVMTI_TYPE_JBOOLEAN = 108,
jpayne@69 246 JVMTI_TYPE_JOBJECT = 109,
jpayne@69 247 JVMTI_TYPE_JTHREAD = 110,
jpayne@69 248 JVMTI_TYPE_JCLASS = 111,
jpayne@69 249 JVMTI_TYPE_JVALUE = 112,
jpayne@69 250 JVMTI_TYPE_JFIELDID = 113,
jpayne@69 251 JVMTI_TYPE_JMETHODID = 114,
jpayne@69 252 JVMTI_TYPE_CCHAR = 115,
jpayne@69 253 JVMTI_TYPE_CVOID = 116,
jpayne@69 254 JVMTI_TYPE_JNIENV = 117
jpayne@69 255 } jvmtiParamTypes;
jpayne@69 256
jpayne@69 257 /* Extension Function/Event Parameter Kinds */
jpayne@69 258
jpayne@69 259 typedef enum {
jpayne@69 260 JVMTI_KIND_IN = 91,
jpayne@69 261 JVMTI_KIND_IN_PTR = 92,
jpayne@69 262 JVMTI_KIND_IN_BUF = 93,
jpayne@69 263 JVMTI_KIND_ALLOC_BUF = 94,
jpayne@69 264 JVMTI_KIND_ALLOC_ALLOC_BUF = 95,
jpayne@69 265 JVMTI_KIND_OUT = 96,
jpayne@69 266 JVMTI_KIND_OUT_BUF = 97
jpayne@69 267 } jvmtiParamKind;
jpayne@69 268
jpayne@69 269 /* Timer Kinds */
jpayne@69 270
jpayne@69 271 typedef enum {
jpayne@69 272 JVMTI_TIMER_USER_CPU = 30,
jpayne@69 273 JVMTI_TIMER_TOTAL_CPU = 31,
jpayne@69 274 JVMTI_TIMER_ELAPSED = 32
jpayne@69 275 } jvmtiTimerKind;
jpayne@69 276
jpayne@69 277 /* Phases of execution */
jpayne@69 278
jpayne@69 279 typedef enum {
jpayne@69 280 JVMTI_PHASE_ONLOAD = 1,
jpayne@69 281 JVMTI_PHASE_PRIMORDIAL = 2,
jpayne@69 282 JVMTI_PHASE_START = 6,
jpayne@69 283 JVMTI_PHASE_LIVE = 4,
jpayne@69 284 JVMTI_PHASE_DEAD = 8
jpayne@69 285 } jvmtiPhase;
jpayne@69 286
jpayne@69 287 /* Version Interface Types */
jpayne@69 288
jpayne@69 289 enum {
jpayne@69 290 JVMTI_VERSION_INTERFACE_JNI = 0x00000000,
jpayne@69 291 JVMTI_VERSION_INTERFACE_JVMTI = 0x30000000
jpayne@69 292 };
jpayne@69 293
jpayne@69 294 /* Version Masks */
jpayne@69 295
jpayne@69 296 enum {
jpayne@69 297 JVMTI_VERSION_MASK_INTERFACE_TYPE = 0x70000000,
jpayne@69 298 JVMTI_VERSION_MASK_MAJOR = 0x0FFF0000,
jpayne@69 299 JVMTI_VERSION_MASK_MINOR = 0x0000FF00,
jpayne@69 300 JVMTI_VERSION_MASK_MICRO = 0x000000FF
jpayne@69 301 };
jpayne@69 302
jpayne@69 303 /* Version Shifts */
jpayne@69 304
jpayne@69 305 enum {
jpayne@69 306 JVMTI_VERSION_SHIFT_MAJOR = 16,
jpayne@69 307 JVMTI_VERSION_SHIFT_MINOR = 8,
jpayne@69 308 JVMTI_VERSION_SHIFT_MICRO = 0
jpayne@69 309 };
jpayne@69 310
jpayne@69 311 /* Verbose Flag Enumeration */
jpayne@69 312
jpayne@69 313 typedef enum {
jpayne@69 314 JVMTI_VERBOSE_OTHER = 0,
jpayne@69 315 JVMTI_VERBOSE_GC = 1,
jpayne@69 316 JVMTI_VERBOSE_CLASS = 2,
jpayne@69 317 JVMTI_VERBOSE_JNI = 4
jpayne@69 318 } jvmtiVerboseFlag;
jpayne@69 319
jpayne@69 320 /* JLocation Format Enumeration */
jpayne@69 321
jpayne@69 322 typedef enum {
jpayne@69 323 JVMTI_JLOCATION_JVMBCI = 1,
jpayne@69 324 JVMTI_JLOCATION_MACHINEPC = 2,
jpayne@69 325 JVMTI_JLOCATION_OTHER = 0
jpayne@69 326 } jvmtiJlocationFormat;
jpayne@69 327
jpayne@69 328 /* Resource Exhaustion Flags */
jpayne@69 329
jpayne@69 330 enum {
jpayne@69 331 JVMTI_RESOURCE_EXHAUSTED_OOM_ERROR = 0x0001,
jpayne@69 332 JVMTI_RESOURCE_EXHAUSTED_JAVA_HEAP = 0x0002,
jpayne@69 333 JVMTI_RESOURCE_EXHAUSTED_THREADS = 0x0004
jpayne@69 334 };
jpayne@69 335
jpayne@69 336 /* Errors */
jpayne@69 337
jpayne@69 338 typedef enum {
jpayne@69 339 JVMTI_ERROR_NONE = 0,
jpayne@69 340 JVMTI_ERROR_INVALID_THREAD = 10,
jpayne@69 341 JVMTI_ERROR_INVALID_THREAD_GROUP = 11,
jpayne@69 342 JVMTI_ERROR_INVALID_PRIORITY = 12,
jpayne@69 343 JVMTI_ERROR_THREAD_NOT_SUSPENDED = 13,
jpayne@69 344 JVMTI_ERROR_THREAD_SUSPENDED = 14,
jpayne@69 345 JVMTI_ERROR_THREAD_NOT_ALIVE = 15,
jpayne@69 346 JVMTI_ERROR_INVALID_OBJECT = 20,
jpayne@69 347 JVMTI_ERROR_INVALID_CLASS = 21,
jpayne@69 348 JVMTI_ERROR_CLASS_NOT_PREPARED = 22,
jpayne@69 349 JVMTI_ERROR_INVALID_METHODID = 23,
jpayne@69 350 JVMTI_ERROR_INVALID_LOCATION = 24,
jpayne@69 351 JVMTI_ERROR_INVALID_FIELDID = 25,
jpayne@69 352 JVMTI_ERROR_INVALID_MODULE = 26,
jpayne@69 353 JVMTI_ERROR_NO_MORE_FRAMES = 31,
jpayne@69 354 JVMTI_ERROR_OPAQUE_FRAME = 32,
jpayne@69 355 JVMTI_ERROR_TYPE_MISMATCH = 34,
jpayne@69 356 JVMTI_ERROR_INVALID_SLOT = 35,
jpayne@69 357 JVMTI_ERROR_DUPLICATE = 40,
jpayne@69 358 JVMTI_ERROR_NOT_FOUND = 41,
jpayne@69 359 JVMTI_ERROR_INVALID_MONITOR = 50,
jpayne@69 360 JVMTI_ERROR_NOT_MONITOR_OWNER = 51,
jpayne@69 361 JVMTI_ERROR_INTERRUPT = 52,
jpayne@69 362 JVMTI_ERROR_INVALID_CLASS_FORMAT = 60,
jpayne@69 363 JVMTI_ERROR_CIRCULAR_CLASS_DEFINITION = 61,
jpayne@69 364 JVMTI_ERROR_FAILS_VERIFICATION = 62,
jpayne@69 365 JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_ADDED = 63,
jpayne@69 366 JVMTI_ERROR_UNSUPPORTED_REDEFINITION_SCHEMA_CHANGED = 64,
jpayne@69 367 JVMTI_ERROR_INVALID_TYPESTATE = 65,
jpayne@69 368 JVMTI_ERROR_UNSUPPORTED_REDEFINITION_HIERARCHY_CHANGED = 66,
jpayne@69 369 JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_DELETED = 67,
jpayne@69 370 JVMTI_ERROR_UNSUPPORTED_VERSION = 68,
jpayne@69 371 JVMTI_ERROR_NAMES_DONT_MATCH = 69,
jpayne@69 372 JVMTI_ERROR_UNSUPPORTED_REDEFINITION_CLASS_MODIFIERS_CHANGED = 70,
jpayne@69 373 JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_MODIFIERS_CHANGED = 71,
jpayne@69 374 JVMTI_ERROR_UNSUPPORTED_REDEFINITION_CLASS_ATTRIBUTE_CHANGED = 72,
jpayne@69 375 JVMTI_ERROR_UNMODIFIABLE_CLASS = 79,
jpayne@69 376 JVMTI_ERROR_UNMODIFIABLE_MODULE = 80,
jpayne@69 377 JVMTI_ERROR_NOT_AVAILABLE = 98,
jpayne@69 378 JVMTI_ERROR_MUST_POSSESS_CAPABILITY = 99,
jpayne@69 379 JVMTI_ERROR_NULL_POINTER = 100,
jpayne@69 380 JVMTI_ERROR_ABSENT_INFORMATION = 101,
jpayne@69 381 JVMTI_ERROR_INVALID_EVENT_TYPE = 102,
jpayne@69 382 JVMTI_ERROR_ILLEGAL_ARGUMENT = 103,
jpayne@69 383 JVMTI_ERROR_NATIVE_METHOD = 104,
jpayne@69 384 JVMTI_ERROR_CLASS_LOADER_UNSUPPORTED = 106,
jpayne@69 385 JVMTI_ERROR_OUT_OF_MEMORY = 110,
jpayne@69 386 JVMTI_ERROR_ACCESS_DENIED = 111,
jpayne@69 387 JVMTI_ERROR_WRONG_PHASE = 112,
jpayne@69 388 JVMTI_ERROR_INTERNAL = 113,
jpayne@69 389 JVMTI_ERROR_UNATTACHED_THREAD = 115,
jpayne@69 390 JVMTI_ERROR_INVALID_ENVIRONMENT = 116,
jpayne@69 391 JVMTI_ERROR_MAX = 116
jpayne@69 392 } jvmtiError;
jpayne@69 393
jpayne@69 394 /* Event IDs */
jpayne@69 395
jpayne@69 396 typedef enum {
jpayne@69 397 JVMTI_MIN_EVENT_TYPE_VAL = 50,
jpayne@69 398 JVMTI_EVENT_VM_INIT = 50,
jpayne@69 399 JVMTI_EVENT_VM_DEATH = 51,
jpayne@69 400 JVMTI_EVENT_THREAD_START = 52,
jpayne@69 401 JVMTI_EVENT_THREAD_END = 53,
jpayne@69 402 JVMTI_EVENT_CLASS_FILE_LOAD_HOOK = 54,
jpayne@69 403 JVMTI_EVENT_CLASS_LOAD = 55,
jpayne@69 404 JVMTI_EVENT_CLASS_PREPARE = 56,
jpayne@69 405 JVMTI_EVENT_VM_START = 57,
jpayne@69 406 JVMTI_EVENT_EXCEPTION = 58,
jpayne@69 407 JVMTI_EVENT_EXCEPTION_CATCH = 59,
jpayne@69 408 JVMTI_EVENT_SINGLE_STEP = 60,
jpayne@69 409 JVMTI_EVENT_FRAME_POP = 61,
jpayne@69 410 JVMTI_EVENT_BREAKPOINT = 62,
jpayne@69 411 JVMTI_EVENT_FIELD_ACCESS = 63,
jpayne@69 412 JVMTI_EVENT_FIELD_MODIFICATION = 64,
jpayne@69 413 JVMTI_EVENT_METHOD_ENTRY = 65,
jpayne@69 414 JVMTI_EVENT_METHOD_EXIT = 66,
jpayne@69 415 JVMTI_EVENT_NATIVE_METHOD_BIND = 67,
jpayne@69 416 JVMTI_EVENT_COMPILED_METHOD_LOAD = 68,
jpayne@69 417 JVMTI_EVENT_COMPILED_METHOD_UNLOAD = 69,
jpayne@69 418 JVMTI_EVENT_DYNAMIC_CODE_GENERATED = 70,
jpayne@69 419 JVMTI_EVENT_DATA_DUMP_REQUEST = 71,
jpayne@69 420 JVMTI_EVENT_MONITOR_WAIT = 73,
jpayne@69 421 JVMTI_EVENT_MONITOR_WAITED = 74,
jpayne@69 422 JVMTI_EVENT_MONITOR_CONTENDED_ENTER = 75,
jpayne@69 423 JVMTI_EVENT_MONITOR_CONTENDED_ENTERED = 76,
jpayne@69 424 JVMTI_EVENT_RESOURCE_EXHAUSTED = 80,
jpayne@69 425 JVMTI_EVENT_GARBAGE_COLLECTION_START = 81,
jpayne@69 426 JVMTI_EVENT_GARBAGE_COLLECTION_FINISH = 82,
jpayne@69 427 JVMTI_EVENT_OBJECT_FREE = 83,
jpayne@69 428 JVMTI_EVENT_VM_OBJECT_ALLOC = 84,
jpayne@69 429 JVMTI_EVENT_SAMPLED_OBJECT_ALLOC = 86,
jpayne@69 430 JVMTI_MAX_EVENT_TYPE_VAL = 86
jpayne@69 431 } jvmtiEvent;
jpayne@69 432
jpayne@69 433
jpayne@69 434 /* Pre-Declarations */
jpayne@69 435 struct _jvmtiThreadInfo;
jpayne@69 436 typedef struct _jvmtiThreadInfo jvmtiThreadInfo;
jpayne@69 437 struct _jvmtiMonitorStackDepthInfo;
jpayne@69 438 typedef struct _jvmtiMonitorStackDepthInfo jvmtiMonitorStackDepthInfo;
jpayne@69 439 struct _jvmtiThreadGroupInfo;
jpayne@69 440 typedef struct _jvmtiThreadGroupInfo jvmtiThreadGroupInfo;
jpayne@69 441 struct _jvmtiFrameInfo;
jpayne@69 442 typedef struct _jvmtiFrameInfo jvmtiFrameInfo;
jpayne@69 443 struct _jvmtiStackInfo;
jpayne@69 444 typedef struct _jvmtiStackInfo jvmtiStackInfo;
jpayne@69 445 struct _jvmtiHeapReferenceInfoField;
jpayne@69 446 typedef struct _jvmtiHeapReferenceInfoField jvmtiHeapReferenceInfoField;
jpayne@69 447 struct _jvmtiHeapReferenceInfoArray;
jpayne@69 448 typedef struct _jvmtiHeapReferenceInfoArray jvmtiHeapReferenceInfoArray;
jpayne@69 449 struct _jvmtiHeapReferenceInfoConstantPool;
jpayne@69 450 typedef struct _jvmtiHeapReferenceInfoConstantPool jvmtiHeapReferenceInfoConstantPool;
jpayne@69 451 struct _jvmtiHeapReferenceInfoStackLocal;
jpayne@69 452 typedef struct _jvmtiHeapReferenceInfoStackLocal jvmtiHeapReferenceInfoStackLocal;
jpayne@69 453 struct _jvmtiHeapReferenceInfoJniLocal;
jpayne@69 454 typedef struct _jvmtiHeapReferenceInfoJniLocal jvmtiHeapReferenceInfoJniLocal;
jpayne@69 455 struct _jvmtiHeapReferenceInfoReserved;
jpayne@69 456 typedef struct _jvmtiHeapReferenceInfoReserved jvmtiHeapReferenceInfoReserved;
jpayne@69 457 union _jvmtiHeapReferenceInfo;
jpayne@69 458 typedef union _jvmtiHeapReferenceInfo jvmtiHeapReferenceInfo;
jpayne@69 459 struct _jvmtiHeapCallbacks;
jpayne@69 460 typedef struct _jvmtiHeapCallbacks jvmtiHeapCallbacks;
jpayne@69 461 struct _jvmtiClassDefinition;
jpayne@69 462 typedef struct _jvmtiClassDefinition jvmtiClassDefinition;
jpayne@69 463 struct _jvmtiMonitorUsage;
jpayne@69 464 typedef struct _jvmtiMonitorUsage jvmtiMonitorUsage;
jpayne@69 465 struct _jvmtiLineNumberEntry;
jpayne@69 466 typedef struct _jvmtiLineNumberEntry jvmtiLineNumberEntry;
jpayne@69 467 struct _jvmtiLocalVariableEntry;
jpayne@69 468 typedef struct _jvmtiLocalVariableEntry jvmtiLocalVariableEntry;
jpayne@69 469 struct _jvmtiParamInfo;
jpayne@69 470 typedef struct _jvmtiParamInfo jvmtiParamInfo;
jpayne@69 471 struct _jvmtiExtensionFunctionInfo;
jpayne@69 472 typedef struct _jvmtiExtensionFunctionInfo jvmtiExtensionFunctionInfo;
jpayne@69 473 struct _jvmtiExtensionEventInfo;
jpayne@69 474 typedef struct _jvmtiExtensionEventInfo jvmtiExtensionEventInfo;
jpayne@69 475 struct _jvmtiTimerInfo;
jpayne@69 476 typedef struct _jvmtiTimerInfo jvmtiTimerInfo;
jpayne@69 477 struct _jvmtiAddrLocationMap;
jpayne@69 478 typedef struct _jvmtiAddrLocationMap jvmtiAddrLocationMap;
jpayne@69 479
jpayne@69 480 /* Function Types */
jpayne@69 481
jpayne@69 482 typedef void (JNICALL *jvmtiStartFunction)
jpayne@69 483 (jvmtiEnv* jvmti_env, JNIEnv* jni_env, void* arg);
jpayne@69 484
jpayne@69 485 typedef jint (JNICALL *jvmtiHeapIterationCallback)
jpayne@69 486 (jlong class_tag, jlong size, jlong* tag_ptr, jint length, void* user_data);
jpayne@69 487
jpayne@69 488 typedef jint (JNICALL *jvmtiHeapReferenceCallback)
jpayne@69 489 (jvmtiHeapReferenceKind reference_kind, const jvmtiHeapReferenceInfo* reference_info, jlong class_tag, jlong referrer_class_tag, jlong size, jlong* tag_ptr, jlong* referrer_tag_ptr, jint length, void* user_data);
jpayne@69 490
jpayne@69 491 typedef jint (JNICALL *jvmtiPrimitiveFieldCallback)
jpayne@69 492 (jvmtiHeapReferenceKind kind, const jvmtiHeapReferenceInfo* info, jlong object_class_tag, jlong* object_tag_ptr, jvalue value, jvmtiPrimitiveType value_type, void* user_data);
jpayne@69 493
jpayne@69 494 typedef jint (JNICALL *jvmtiArrayPrimitiveValueCallback)
jpayne@69 495 (jlong class_tag, jlong size, jlong* tag_ptr, jint element_count, jvmtiPrimitiveType element_type, const void* elements, void* user_data);
jpayne@69 496
jpayne@69 497 typedef jint (JNICALL *jvmtiStringPrimitiveValueCallback)
jpayne@69 498 (jlong class_tag, jlong size, jlong* tag_ptr, const jchar* value, jint value_length, void* user_data);
jpayne@69 499
jpayne@69 500 typedef jint (JNICALL *jvmtiReservedCallback)
jpayne@69 501 ();
jpayne@69 502
jpayne@69 503 typedef jvmtiIterationControl (JNICALL *jvmtiHeapObjectCallback)
jpayne@69 504 (jlong class_tag, jlong size, jlong* tag_ptr, void* user_data);
jpayne@69 505
jpayne@69 506 typedef jvmtiIterationControl (JNICALL *jvmtiHeapRootCallback)
jpayne@69 507 (jvmtiHeapRootKind root_kind, jlong class_tag, jlong size, jlong* tag_ptr, void* user_data);
jpayne@69 508
jpayne@69 509 typedef jvmtiIterationControl (JNICALL *jvmtiStackReferenceCallback)
jpayne@69 510 (jvmtiHeapRootKind root_kind, jlong class_tag, jlong size, jlong* tag_ptr, jlong thread_tag, jint depth, jmethodID method, jint slot, void* user_data);
jpayne@69 511
jpayne@69 512 typedef jvmtiIterationControl (JNICALL *jvmtiObjectReferenceCallback)
jpayne@69 513 (jvmtiObjectReferenceKind reference_kind, jlong class_tag, jlong size, jlong* tag_ptr, jlong referrer_tag, jint referrer_index, void* user_data);
jpayne@69 514
jpayne@69 515 typedef jvmtiError (JNICALL *jvmtiExtensionFunction)
jpayne@69 516 (jvmtiEnv* jvmti_env, ...);
jpayne@69 517
jpayne@69 518 typedef void (JNICALL *jvmtiExtensionEvent)
jpayne@69 519 (jvmtiEnv* jvmti_env, ...);
jpayne@69 520
jpayne@69 521
jpayne@69 522 /* Structure Types */
jpayne@69 523 struct _jvmtiThreadInfo {
jpayne@69 524 char* name;
jpayne@69 525 jint priority;
jpayne@69 526 jboolean is_daemon;
jpayne@69 527 jthreadGroup thread_group;
jpayne@69 528 jobject context_class_loader;
jpayne@69 529 };
jpayne@69 530 struct _jvmtiMonitorStackDepthInfo {
jpayne@69 531 jobject monitor;
jpayne@69 532 jint stack_depth;
jpayne@69 533 };
jpayne@69 534 struct _jvmtiThreadGroupInfo {
jpayne@69 535 jthreadGroup parent;
jpayne@69 536 char* name;
jpayne@69 537 jint max_priority;
jpayne@69 538 jboolean is_daemon;
jpayne@69 539 };
jpayne@69 540 struct _jvmtiFrameInfo {
jpayne@69 541 jmethodID method;
jpayne@69 542 jlocation location;
jpayne@69 543 };
jpayne@69 544 struct _jvmtiStackInfo {
jpayne@69 545 jthread thread;
jpayne@69 546 jint state;
jpayne@69 547 jvmtiFrameInfo* frame_buffer;
jpayne@69 548 jint frame_count;
jpayne@69 549 };
jpayne@69 550 struct _jvmtiHeapReferenceInfoField {
jpayne@69 551 jint index;
jpayne@69 552 };
jpayne@69 553 struct _jvmtiHeapReferenceInfoArray {
jpayne@69 554 jint index;
jpayne@69 555 };
jpayne@69 556 struct _jvmtiHeapReferenceInfoConstantPool {
jpayne@69 557 jint index;
jpayne@69 558 };
jpayne@69 559 struct _jvmtiHeapReferenceInfoStackLocal {
jpayne@69 560 jlong thread_tag;
jpayne@69 561 jlong thread_id;
jpayne@69 562 jint depth;
jpayne@69 563 jmethodID method;
jpayne@69 564 jlocation location;
jpayne@69 565 jint slot;
jpayne@69 566 };
jpayne@69 567 struct _jvmtiHeapReferenceInfoJniLocal {
jpayne@69 568 jlong thread_tag;
jpayne@69 569 jlong thread_id;
jpayne@69 570 jint depth;
jpayne@69 571 jmethodID method;
jpayne@69 572 };
jpayne@69 573 struct _jvmtiHeapReferenceInfoReserved {
jpayne@69 574 jlong reserved1;
jpayne@69 575 jlong reserved2;
jpayne@69 576 jlong reserved3;
jpayne@69 577 jlong reserved4;
jpayne@69 578 jlong reserved5;
jpayne@69 579 jlong reserved6;
jpayne@69 580 jlong reserved7;
jpayne@69 581 jlong reserved8;
jpayne@69 582 };
jpayne@69 583 union _jvmtiHeapReferenceInfo {
jpayne@69 584 jvmtiHeapReferenceInfoField field;
jpayne@69 585 jvmtiHeapReferenceInfoArray array;
jpayne@69 586 jvmtiHeapReferenceInfoConstantPool constant_pool;
jpayne@69 587 jvmtiHeapReferenceInfoStackLocal stack_local;
jpayne@69 588 jvmtiHeapReferenceInfoJniLocal jni_local;
jpayne@69 589 jvmtiHeapReferenceInfoReserved other;
jpayne@69 590 };
jpayne@69 591 struct _jvmtiHeapCallbacks {
jpayne@69 592 jvmtiHeapIterationCallback heap_iteration_callback;
jpayne@69 593 jvmtiHeapReferenceCallback heap_reference_callback;
jpayne@69 594 jvmtiPrimitiveFieldCallback primitive_field_callback;
jpayne@69 595 jvmtiArrayPrimitiveValueCallback array_primitive_value_callback;
jpayne@69 596 jvmtiStringPrimitiveValueCallback string_primitive_value_callback;
jpayne@69 597 jvmtiReservedCallback reserved5;
jpayne@69 598 jvmtiReservedCallback reserved6;
jpayne@69 599 jvmtiReservedCallback reserved7;
jpayne@69 600 jvmtiReservedCallback reserved8;
jpayne@69 601 jvmtiReservedCallback reserved9;
jpayne@69 602 jvmtiReservedCallback reserved10;
jpayne@69 603 jvmtiReservedCallback reserved11;
jpayne@69 604 jvmtiReservedCallback reserved12;
jpayne@69 605 jvmtiReservedCallback reserved13;
jpayne@69 606 jvmtiReservedCallback reserved14;
jpayne@69 607 jvmtiReservedCallback reserved15;
jpayne@69 608 };
jpayne@69 609 struct _jvmtiClassDefinition {
jpayne@69 610 jclass klass;
jpayne@69 611 jint class_byte_count;
jpayne@69 612 const unsigned char* class_bytes;
jpayne@69 613 };
jpayne@69 614 struct _jvmtiMonitorUsage {
jpayne@69 615 jthread owner;
jpayne@69 616 jint entry_count;
jpayne@69 617 jint waiter_count;
jpayne@69 618 jthread* waiters;
jpayne@69 619 jint notify_waiter_count;
jpayne@69 620 jthread* notify_waiters;
jpayne@69 621 };
jpayne@69 622 struct _jvmtiLineNumberEntry {
jpayne@69 623 jlocation start_location;
jpayne@69 624 jint line_number;
jpayne@69 625 };
jpayne@69 626 struct _jvmtiLocalVariableEntry {
jpayne@69 627 jlocation start_location;
jpayne@69 628 jint length;
jpayne@69 629 char* name;
jpayne@69 630 char* signature;
jpayne@69 631 char* generic_signature;
jpayne@69 632 jint slot;
jpayne@69 633 };
jpayne@69 634 struct _jvmtiParamInfo {
jpayne@69 635 char* name;
jpayne@69 636 jvmtiParamKind kind;
jpayne@69 637 jvmtiParamTypes base_type;
jpayne@69 638 jboolean null_ok;
jpayne@69 639 };
jpayne@69 640 struct _jvmtiExtensionFunctionInfo {
jpayne@69 641 jvmtiExtensionFunction func;
jpayne@69 642 char* id;
jpayne@69 643 char* short_description;
jpayne@69 644 jint param_count;
jpayne@69 645 jvmtiParamInfo* params;
jpayne@69 646 jint error_count;
jpayne@69 647 jvmtiError* errors;
jpayne@69 648 };
jpayne@69 649 struct _jvmtiExtensionEventInfo {
jpayne@69 650 jint extension_event_index;
jpayne@69 651 char* id;
jpayne@69 652 char* short_description;
jpayne@69 653 jint param_count;
jpayne@69 654 jvmtiParamInfo* params;
jpayne@69 655 };
jpayne@69 656 struct _jvmtiTimerInfo {
jpayne@69 657 jlong max_value;
jpayne@69 658 jboolean may_skip_forward;
jpayne@69 659 jboolean may_skip_backward;
jpayne@69 660 jvmtiTimerKind kind;
jpayne@69 661 jlong reserved1;
jpayne@69 662 jlong reserved2;
jpayne@69 663 };
jpayne@69 664 struct _jvmtiAddrLocationMap {
jpayne@69 665 const void* start_address;
jpayne@69 666 jlocation location;
jpayne@69 667 };
jpayne@69 668
jpayne@69 669 typedef struct {
jpayne@69 670 unsigned int can_tag_objects : 1;
jpayne@69 671 unsigned int can_generate_field_modification_events : 1;
jpayne@69 672 unsigned int can_generate_field_access_events : 1;
jpayne@69 673 unsigned int can_get_bytecodes : 1;
jpayne@69 674 unsigned int can_get_synthetic_attribute : 1;
jpayne@69 675 unsigned int can_get_owned_monitor_info : 1;
jpayne@69 676 unsigned int can_get_current_contended_monitor : 1;
jpayne@69 677 unsigned int can_get_monitor_info : 1;
jpayne@69 678 unsigned int can_pop_frame : 1;
jpayne@69 679 unsigned int can_redefine_classes : 1;
jpayne@69 680 unsigned int can_signal_thread : 1;
jpayne@69 681 unsigned int can_get_source_file_name : 1;
jpayne@69 682 unsigned int can_get_line_numbers : 1;
jpayne@69 683 unsigned int can_get_source_debug_extension : 1;
jpayne@69 684 unsigned int can_access_local_variables : 1;
jpayne@69 685 unsigned int can_maintain_original_method_order : 1;
jpayne@69 686 unsigned int can_generate_single_step_events : 1;
jpayne@69 687 unsigned int can_generate_exception_events : 1;
jpayne@69 688 unsigned int can_generate_frame_pop_events : 1;
jpayne@69 689 unsigned int can_generate_breakpoint_events : 1;
jpayne@69 690 unsigned int can_suspend : 1;
jpayne@69 691 unsigned int can_redefine_any_class : 1;
jpayne@69 692 unsigned int can_get_current_thread_cpu_time : 1;
jpayne@69 693 unsigned int can_get_thread_cpu_time : 1;
jpayne@69 694 unsigned int can_generate_method_entry_events : 1;
jpayne@69 695 unsigned int can_generate_method_exit_events : 1;
jpayne@69 696 unsigned int can_generate_all_class_hook_events : 1;
jpayne@69 697 unsigned int can_generate_compiled_method_load_events : 1;
jpayne@69 698 unsigned int can_generate_monitor_events : 1;
jpayne@69 699 unsigned int can_generate_vm_object_alloc_events : 1;
jpayne@69 700 unsigned int can_generate_native_method_bind_events : 1;
jpayne@69 701 unsigned int can_generate_garbage_collection_events : 1;
jpayne@69 702 unsigned int can_generate_object_free_events : 1;
jpayne@69 703 unsigned int can_force_early_return : 1;
jpayne@69 704 unsigned int can_get_owned_monitor_stack_depth_info : 1;
jpayne@69 705 unsigned int can_get_constant_pool : 1;
jpayne@69 706 unsigned int can_set_native_method_prefix : 1;
jpayne@69 707 unsigned int can_retransform_classes : 1;
jpayne@69 708 unsigned int can_retransform_any_class : 1;
jpayne@69 709 unsigned int can_generate_resource_exhaustion_heap_events : 1;
jpayne@69 710 unsigned int can_generate_resource_exhaustion_threads_events : 1;
jpayne@69 711 unsigned int can_generate_early_vmstart : 1;
jpayne@69 712 unsigned int can_generate_early_class_hook_events : 1;
jpayne@69 713 unsigned int can_generate_sampled_object_alloc_events : 1;
jpayne@69 714 unsigned int : 4;
jpayne@69 715 unsigned int : 16;
jpayne@69 716 unsigned int : 16;
jpayne@69 717 unsigned int : 16;
jpayne@69 718 unsigned int : 16;
jpayne@69 719 unsigned int : 16;
jpayne@69 720 } jvmtiCapabilities;
jpayne@69 721
jpayne@69 722
jpayne@69 723 /* Event Definitions */
jpayne@69 724
jpayne@69 725 typedef void (JNICALL *jvmtiEventReserved)(void);
jpayne@69 726
jpayne@69 727
jpayne@69 728 typedef void (JNICALL *jvmtiEventBreakpoint)
jpayne@69 729 (jvmtiEnv *jvmti_env,
jpayne@69 730 JNIEnv* jni_env,
jpayne@69 731 jthread thread,
jpayne@69 732 jmethodID method,
jpayne@69 733 jlocation location);
jpayne@69 734
jpayne@69 735 typedef void (JNICALL *jvmtiEventClassFileLoadHook)
jpayne@69 736 (jvmtiEnv *jvmti_env,
jpayne@69 737 JNIEnv* jni_env,
jpayne@69 738 jclass class_being_redefined,
jpayne@69 739 jobject loader,
jpayne@69 740 const char* name,
jpayne@69 741 jobject protection_domain,
jpayne@69 742 jint class_data_len,
jpayne@69 743 const unsigned char* class_data,
jpayne@69 744 jint* new_class_data_len,
jpayne@69 745 unsigned char** new_class_data);
jpayne@69 746
jpayne@69 747 typedef void (JNICALL *jvmtiEventClassLoad)
jpayne@69 748 (jvmtiEnv *jvmti_env,
jpayne@69 749 JNIEnv* jni_env,
jpayne@69 750 jthread thread,
jpayne@69 751 jclass klass);
jpayne@69 752
jpayne@69 753 typedef void (JNICALL *jvmtiEventClassPrepare)
jpayne@69 754 (jvmtiEnv *jvmti_env,
jpayne@69 755 JNIEnv* jni_env,
jpayne@69 756 jthread thread,
jpayne@69 757 jclass klass);
jpayne@69 758
jpayne@69 759 typedef void (JNICALL *jvmtiEventCompiledMethodLoad)
jpayne@69 760 (jvmtiEnv *jvmti_env,
jpayne@69 761 jmethodID method,
jpayne@69 762 jint code_size,
jpayne@69 763 const void* code_addr,
jpayne@69 764 jint map_length,
jpayne@69 765 const jvmtiAddrLocationMap* map,
jpayne@69 766 const void* compile_info);
jpayne@69 767
jpayne@69 768 typedef void (JNICALL *jvmtiEventCompiledMethodUnload)
jpayne@69 769 (jvmtiEnv *jvmti_env,
jpayne@69 770 jmethodID method,
jpayne@69 771 const void* code_addr);
jpayne@69 772
jpayne@69 773 typedef void (JNICALL *jvmtiEventDataDumpRequest)
jpayne@69 774 (jvmtiEnv *jvmti_env);
jpayne@69 775
jpayne@69 776 typedef void (JNICALL *jvmtiEventDynamicCodeGenerated)
jpayne@69 777 (jvmtiEnv *jvmti_env,
jpayne@69 778 const char* name,
jpayne@69 779 const void* address,
jpayne@69 780 jint length);
jpayne@69 781
jpayne@69 782 typedef void (JNICALL *jvmtiEventException)
jpayne@69 783 (jvmtiEnv *jvmti_env,
jpayne@69 784 JNIEnv* jni_env,
jpayne@69 785 jthread thread,
jpayne@69 786 jmethodID method,
jpayne@69 787 jlocation location,
jpayne@69 788 jobject exception,
jpayne@69 789 jmethodID catch_method,
jpayne@69 790 jlocation catch_location);
jpayne@69 791
jpayne@69 792 typedef void (JNICALL *jvmtiEventExceptionCatch)
jpayne@69 793 (jvmtiEnv *jvmti_env,
jpayne@69 794 JNIEnv* jni_env,
jpayne@69 795 jthread thread,
jpayne@69 796 jmethodID method,
jpayne@69 797 jlocation location,
jpayne@69 798 jobject exception);
jpayne@69 799
jpayne@69 800 typedef void (JNICALL *jvmtiEventFieldAccess)
jpayne@69 801 (jvmtiEnv *jvmti_env,
jpayne@69 802 JNIEnv* jni_env,
jpayne@69 803 jthread thread,
jpayne@69 804 jmethodID method,
jpayne@69 805 jlocation location,
jpayne@69 806 jclass field_klass,
jpayne@69 807 jobject object,
jpayne@69 808 jfieldID field);
jpayne@69 809
jpayne@69 810 typedef void (JNICALL *jvmtiEventFieldModification)
jpayne@69 811 (jvmtiEnv *jvmti_env,
jpayne@69 812 JNIEnv* jni_env,
jpayne@69 813 jthread thread,
jpayne@69 814 jmethodID method,
jpayne@69 815 jlocation location,
jpayne@69 816 jclass field_klass,
jpayne@69 817 jobject object,
jpayne@69 818 jfieldID field,
jpayne@69 819 char signature_type,
jpayne@69 820 jvalue new_value);
jpayne@69 821
jpayne@69 822 typedef void (JNICALL *jvmtiEventFramePop)
jpayne@69 823 (jvmtiEnv *jvmti_env,
jpayne@69 824 JNIEnv* jni_env,
jpayne@69 825 jthread thread,
jpayne@69 826 jmethodID method,
jpayne@69 827 jboolean was_popped_by_exception);
jpayne@69 828
jpayne@69 829 typedef void (JNICALL *jvmtiEventGarbageCollectionFinish)
jpayne@69 830 (jvmtiEnv *jvmti_env);
jpayne@69 831
jpayne@69 832 typedef void (JNICALL *jvmtiEventGarbageCollectionStart)
jpayne@69 833 (jvmtiEnv *jvmti_env);
jpayne@69 834
jpayne@69 835 typedef void (JNICALL *jvmtiEventMethodEntry)
jpayne@69 836 (jvmtiEnv *jvmti_env,
jpayne@69 837 JNIEnv* jni_env,
jpayne@69 838 jthread thread,
jpayne@69 839 jmethodID method);
jpayne@69 840
jpayne@69 841 typedef void (JNICALL *jvmtiEventMethodExit)
jpayne@69 842 (jvmtiEnv *jvmti_env,
jpayne@69 843 JNIEnv* jni_env,
jpayne@69 844 jthread thread,
jpayne@69 845 jmethodID method,
jpayne@69 846 jboolean was_popped_by_exception,
jpayne@69 847 jvalue return_value);
jpayne@69 848
jpayne@69 849 typedef void (JNICALL *jvmtiEventMonitorContendedEnter)
jpayne@69 850 (jvmtiEnv *jvmti_env,
jpayne@69 851 JNIEnv* jni_env,
jpayne@69 852 jthread thread,
jpayne@69 853 jobject object);
jpayne@69 854
jpayne@69 855 typedef void (JNICALL *jvmtiEventMonitorContendedEntered)
jpayne@69 856 (jvmtiEnv *jvmti_env,
jpayne@69 857 JNIEnv* jni_env,
jpayne@69 858 jthread thread,
jpayne@69 859 jobject object);
jpayne@69 860
jpayne@69 861 typedef void (JNICALL *jvmtiEventMonitorWait)
jpayne@69 862 (jvmtiEnv *jvmti_env,
jpayne@69 863 JNIEnv* jni_env,
jpayne@69 864 jthread thread,
jpayne@69 865 jobject object,
jpayne@69 866 jlong timeout);
jpayne@69 867
jpayne@69 868 typedef void (JNICALL *jvmtiEventMonitorWaited)
jpayne@69 869 (jvmtiEnv *jvmti_env,
jpayne@69 870 JNIEnv* jni_env,
jpayne@69 871 jthread thread,
jpayne@69 872 jobject object,
jpayne@69 873 jboolean timed_out);
jpayne@69 874
jpayne@69 875 typedef void (JNICALL *jvmtiEventNativeMethodBind)
jpayne@69 876 (jvmtiEnv *jvmti_env,
jpayne@69 877 JNIEnv* jni_env,
jpayne@69 878 jthread thread,
jpayne@69 879 jmethodID method,
jpayne@69 880 void* address,
jpayne@69 881 void** new_address_ptr);
jpayne@69 882
jpayne@69 883 typedef void (JNICALL *jvmtiEventObjectFree)
jpayne@69 884 (jvmtiEnv *jvmti_env,
jpayne@69 885 jlong tag);
jpayne@69 886
jpayne@69 887 typedef void (JNICALL *jvmtiEventResourceExhausted)
jpayne@69 888 (jvmtiEnv *jvmti_env,
jpayne@69 889 JNIEnv* jni_env,
jpayne@69 890 jint flags,
jpayne@69 891 const void* reserved,
jpayne@69 892 const char* description);
jpayne@69 893
jpayne@69 894 typedef void (JNICALL *jvmtiEventSampledObjectAlloc)
jpayne@69 895 (jvmtiEnv *jvmti_env,
jpayne@69 896 JNIEnv* jni_env,
jpayne@69 897 jthread thread,
jpayne@69 898 jobject object,
jpayne@69 899 jclass object_klass,
jpayne@69 900 jlong size);
jpayne@69 901
jpayne@69 902 typedef void (JNICALL *jvmtiEventSingleStep)
jpayne@69 903 (jvmtiEnv *jvmti_env,
jpayne@69 904 JNIEnv* jni_env,
jpayne@69 905 jthread thread,
jpayne@69 906 jmethodID method,
jpayne@69 907 jlocation location);
jpayne@69 908
jpayne@69 909 typedef void (JNICALL *jvmtiEventThreadEnd)
jpayne@69 910 (jvmtiEnv *jvmti_env,
jpayne@69 911 JNIEnv* jni_env,
jpayne@69 912 jthread thread);
jpayne@69 913
jpayne@69 914 typedef void (JNICALL *jvmtiEventThreadStart)
jpayne@69 915 (jvmtiEnv *jvmti_env,
jpayne@69 916 JNIEnv* jni_env,
jpayne@69 917 jthread thread);
jpayne@69 918
jpayne@69 919 typedef void (JNICALL *jvmtiEventVMDeath)
jpayne@69 920 (jvmtiEnv *jvmti_env,
jpayne@69 921 JNIEnv* jni_env);
jpayne@69 922
jpayne@69 923 typedef void (JNICALL *jvmtiEventVMInit)
jpayne@69 924 (jvmtiEnv *jvmti_env,
jpayne@69 925 JNIEnv* jni_env,
jpayne@69 926 jthread thread);
jpayne@69 927
jpayne@69 928 typedef void (JNICALL *jvmtiEventVMObjectAlloc)
jpayne@69 929 (jvmtiEnv *jvmti_env,
jpayne@69 930 JNIEnv* jni_env,
jpayne@69 931 jthread thread,
jpayne@69 932 jobject object,
jpayne@69 933 jclass object_klass,
jpayne@69 934 jlong size);
jpayne@69 935
jpayne@69 936 typedef void (JNICALL *jvmtiEventVMStart)
jpayne@69 937 (jvmtiEnv *jvmti_env,
jpayne@69 938 JNIEnv* jni_env);
jpayne@69 939
jpayne@69 940 /* Event Callback Structure */
jpayne@69 941
jpayne@69 942 typedef struct {
jpayne@69 943 /* 50 : VM Initialization Event */
jpayne@69 944 jvmtiEventVMInit VMInit;
jpayne@69 945 /* 51 : VM Death Event */
jpayne@69 946 jvmtiEventVMDeath VMDeath;
jpayne@69 947 /* 52 : Thread Start */
jpayne@69 948 jvmtiEventThreadStart ThreadStart;
jpayne@69 949 /* 53 : Thread End */
jpayne@69 950 jvmtiEventThreadEnd ThreadEnd;
jpayne@69 951 /* 54 : Class File Load Hook */
jpayne@69 952 jvmtiEventClassFileLoadHook ClassFileLoadHook;
jpayne@69 953 /* 55 : Class Load */
jpayne@69 954 jvmtiEventClassLoad ClassLoad;
jpayne@69 955 /* 56 : Class Prepare */
jpayne@69 956 jvmtiEventClassPrepare ClassPrepare;
jpayne@69 957 /* 57 : VM Start Event */
jpayne@69 958 jvmtiEventVMStart VMStart;
jpayne@69 959 /* 58 : Exception */
jpayne@69 960 jvmtiEventException Exception;
jpayne@69 961 /* 59 : Exception Catch */
jpayne@69 962 jvmtiEventExceptionCatch ExceptionCatch;
jpayne@69 963 /* 60 : Single Step */
jpayne@69 964 jvmtiEventSingleStep SingleStep;
jpayne@69 965 /* 61 : Frame Pop */
jpayne@69 966 jvmtiEventFramePop FramePop;
jpayne@69 967 /* 62 : Breakpoint */
jpayne@69 968 jvmtiEventBreakpoint Breakpoint;
jpayne@69 969 /* 63 : Field Access */
jpayne@69 970 jvmtiEventFieldAccess FieldAccess;
jpayne@69 971 /* 64 : Field Modification */
jpayne@69 972 jvmtiEventFieldModification FieldModification;
jpayne@69 973 /* 65 : Method Entry */
jpayne@69 974 jvmtiEventMethodEntry MethodEntry;
jpayne@69 975 /* 66 : Method Exit */
jpayne@69 976 jvmtiEventMethodExit MethodExit;
jpayne@69 977 /* 67 : Native Method Bind */
jpayne@69 978 jvmtiEventNativeMethodBind NativeMethodBind;
jpayne@69 979 /* 68 : Compiled Method Load */
jpayne@69 980 jvmtiEventCompiledMethodLoad CompiledMethodLoad;
jpayne@69 981 /* 69 : Compiled Method Unload */
jpayne@69 982 jvmtiEventCompiledMethodUnload CompiledMethodUnload;
jpayne@69 983 /* 70 : Dynamic Code Generated */
jpayne@69 984 jvmtiEventDynamicCodeGenerated DynamicCodeGenerated;
jpayne@69 985 /* 71 : Data Dump Request */
jpayne@69 986 jvmtiEventDataDumpRequest DataDumpRequest;
jpayne@69 987 /* 72 */
jpayne@69 988 jvmtiEventReserved reserved72;
jpayne@69 989 /* 73 : Monitor Wait */
jpayne@69 990 jvmtiEventMonitorWait MonitorWait;
jpayne@69 991 /* 74 : Monitor Waited */
jpayne@69 992 jvmtiEventMonitorWaited MonitorWaited;
jpayne@69 993 /* 75 : Monitor Contended Enter */
jpayne@69 994 jvmtiEventMonitorContendedEnter MonitorContendedEnter;
jpayne@69 995 /* 76 : Monitor Contended Entered */
jpayne@69 996 jvmtiEventMonitorContendedEntered MonitorContendedEntered;
jpayne@69 997 /* 77 */
jpayne@69 998 jvmtiEventReserved reserved77;
jpayne@69 999 /* 78 */
jpayne@69 1000 jvmtiEventReserved reserved78;
jpayne@69 1001 /* 79 */
jpayne@69 1002 jvmtiEventReserved reserved79;
jpayne@69 1003 /* 80 : Resource Exhausted */
jpayne@69 1004 jvmtiEventResourceExhausted ResourceExhausted;
jpayne@69 1005 /* 81 : Garbage Collection Start */
jpayne@69 1006 jvmtiEventGarbageCollectionStart GarbageCollectionStart;
jpayne@69 1007 /* 82 : Garbage Collection Finish */
jpayne@69 1008 jvmtiEventGarbageCollectionFinish GarbageCollectionFinish;
jpayne@69 1009 /* 83 : Object Free */
jpayne@69 1010 jvmtiEventObjectFree ObjectFree;
jpayne@69 1011 /* 84 : VM Object Allocation */
jpayne@69 1012 jvmtiEventVMObjectAlloc VMObjectAlloc;
jpayne@69 1013 /* 85 */
jpayne@69 1014 jvmtiEventReserved reserved85;
jpayne@69 1015 /* 86 : Sampled Object Allocation */
jpayne@69 1016 jvmtiEventSampledObjectAlloc SampledObjectAlloc;
jpayne@69 1017 } jvmtiEventCallbacks;
jpayne@69 1018
jpayne@69 1019
jpayne@69 1020 /* Function Interface */
jpayne@69 1021
jpayne@69 1022 typedef struct jvmtiInterface_1_ {
jpayne@69 1023
jpayne@69 1024 /* 1 : RESERVED */
jpayne@69 1025 void *reserved1;
jpayne@69 1026
jpayne@69 1027 /* 2 : Set Event Notification Mode */
jpayne@69 1028 jvmtiError (JNICALL *SetEventNotificationMode) (jvmtiEnv* env,
jpayne@69 1029 jvmtiEventMode mode,
jpayne@69 1030 jvmtiEvent event_type,
jpayne@69 1031 jthread event_thread,
jpayne@69 1032 ...);
jpayne@69 1033
jpayne@69 1034 /* 3 : Get All Modules */
jpayne@69 1035 jvmtiError (JNICALL *GetAllModules) (jvmtiEnv* env,
jpayne@69 1036 jint* module_count_ptr,
jpayne@69 1037 jobject** modules_ptr);
jpayne@69 1038
jpayne@69 1039 /* 4 : Get All Threads */
jpayne@69 1040 jvmtiError (JNICALL *GetAllThreads) (jvmtiEnv* env,
jpayne@69 1041 jint* threads_count_ptr,
jpayne@69 1042 jthread** threads_ptr);
jpayne@69 1043
jpayne@69 1044 /* 5 : Suspend Thread */
jpayne@69 1045 jvmtiError (JNICALL *SuspendThread) (jvmtiEnv* env,
jpayne@69 1046 jthread thread);
jpayne@69 1047
jpayne@69 1048 /* 6 : Resume Thread */
jpayne@69 1049 jvmtiError (JNICALL *ResumeThread) (jvmtiEnv* env,
jpayne@69 1050 jthread thread);
jpayne@69 1051
jpayne@69 1052 /* 7 : Stop Thread */
jpayne@69 1053 jvmtiError (JNICALL *StopThread) (jvmtiEnv* env,
jpayne@69 1054 jthread thread,
jpayne@69 1055 jobject exception);
jpayne@69 1056
jpayne@69 1057 /* 8 : Interrupt Thread */
jpayne@69 1058 jvmtiError (JNICALL *InterruptThread) (jvmtiEnv* env,
jpayne@69 1059 jthread thread);
jpayne@69 1060
jpayne@69 1061 /* 9 : Get Thread Info */
jpayne@69 1062 jvmtiError (JNICALL *GetThreadInfo) (jvmtiEnv* env,
jpayne@69 1063 jthread thread,
jpayne@69 1064 jvmtiThreadInfo* info_ptr);
jpayne@69 1065
jpayne@69 1066 /* 10 : Get Owned Monitor Info */
jpayne@69 1067 jvmtiError (JNICALL *GetOwnedMonitorInfo) (jvmtiEnv* env,
jpayne@69 1068 jthread thread,
jpayne@69 1069 jint* owned_monitor_count_ptr,
jpayne@69 1070 jobject** owned_monitors_ptr);
jpayne@69 1071
jpayne@69 1072 /* 11 : Get Current Contended Monitor */
jpayne@69 1073 jvmtiError (JNICALL *GetCurrentContendedMonitor) (jvmtiEnv* env,
jpayne@69 1074 jthread thread,
jpayne@69 1075 jobject* monitor_ptr);
jpayne@69 1076
jpayne@69 1077 /* 12 : Run Agent Thread */
jpayne@69 1078 jvmtiError (JNICALL *RunAgentThread) (jvmtiEnv* env,
jpayne@69 1079 jthread thread,
jpayne@69 1080 jvmtiStartFunction proc,
jpayne@69 1081 const void* arg,
jpayne@69 1082 jint priority);
jpayne@69 1083
jpayne@69 1084 /* 13 : Get Top Thread Groups */
jpayne@69 1085 jvmtiError (JNICALL *GetTopThreadGroups) (jvmtiEnv* env,
jpayne@69 1086 jint* group_count_ptr,
jpayne@69 1087 jthreadGroup** groups_ptr);
jpayne@69 1088
jpayne@69 1089 /* 14 : Get Thread Group Info */
jpayne@69 1090 jvmtiError (JNICALL *GetThreadGroupInfo) (jvmtiEnv* env,
jpayne@69 1091 jthreadGroup group,
jpayne@69 1092 jvmtiThreadGroupInfo* info_ptr);
jpayne@69 1093
jpayne@69 1094 /* 15 : Get Thread Group Children */
jpayne@69 1095 jvmtiError (JNICALL *GetThreadGroupChildren) (jvmtiEnv* env,
jpayne@69 1096 jthreadGroup group,
jpayne@69 1097 jint* thread_count_ptr,
jpayne@69 1098 jthread** threads_ptr,
jpayne@69 1099 jint* group_count_ptr,
jpayne@69 1100 jthreadGroup** groups_ptr);
jpayne@69 1101
jpayne@69 1102 /* 16 : Get Frame Count */
jpayne@69 1103 jvmtiError (JNICALL *GetFrameCount) (jvmtiEnv* env,
jpayne@69 1104 jthread thread,
jpayne@69 1105 jint* count_ptr);
jpayne@69 1106
jpayne@69 1107 /* 17 : Get Thread State */
jpayne@69 1108 jvmtiError (JNICALL *GetThreadState) (jvmtiEnv* env,
jpayne@69 1109 jthread thread,
jpayne@69 1110 jint* thread_state_ptr);
jpayne@69 1111
jpayne@69 1112 /* 18 : Get Current Thread */
jpayne@69 1113 jvmtiError (JNICALL *GetCurrentThread) (jvmtiEnv* env,
jpayne@69 1114 jthread* thread_ptr);
jpayne@69 1115
jpayne@69 1116 /* 19 : Get Frame Location */
jpayne@69 1117 jvmtiError (JNICALL *GetFrameLocation) (jvmtiEnv* env,
jpayne@69 1118 jthread thread,
jpayne@69 1119 jint depth,
jpayne@69 1120 jmethodID* method_ptr,
jpayne@69 1121 jlocation* location_ptr);
jpayne@69 1122
jpayne@69 1123 /* 20 : Notify Frame Pop */
jpayne@69 1124 jvmtiError (JNICALL *NotifyFramePop) (jvmtiEnv* env,
jpayne@69 1125 jthread thread,
jpayne@69 1126 jint depth);
jpayne@69 1127
jpayne@69 1128 /* 21 : Get Local Variable - Object */
jpayne@69 1129 jvmtiError (JNICALL *GetLocalObject) (jvmtiEnv* env,
jpayne@69 1130 jthread thread,
jpayne@69 1131 jint depth,
jpayne@69 1132 jint slot,
jpayne@69 1133 jobject* value_ptr);
jpayne@69 1134
jpayne@69 1135 /* 22 : Get Local Variable - Int */
jpayne@69 1136 jvmtiError (JNICALL *GetLocalInt) (jvmtiEnv* env,
jpayne@69 1137 jthread thread,
jpayne@69 1138 jint depth,
jpayne@69 1139 jint slot,
jpayne@69 1140 jint* value_ptr);
jpayne@69 1141
jpayne@69 1142 /* 23 : Get Local Variable - Long */
jpayne@69 1143 jvmtiError (JNICALL *GetLocalLong) (jvmtiEnv* env,
jpayne@69 1144 jthread thread,
jpayne@69 1145 jint depth,
jpayne@69 1146 jint slot,
jpayne@69 1147 jlong* value_ptr);
jpayne@69 1148
jpayne@69 1149 /* 24 : Get Local Variable - Float */
jpayne@69 1150 jvmtiError (JNICALL *GetLocalFloat) (jvmtiEnv* env,
jpayne@69 1151 jthread thread,
jpayne@69 1152 jint depth,
jpayne@69 1153 jint slot,
jpayne@69 1154 jfloat* value_ptr);
jpayne@69 1155
jpayne@69 1156 /* 25 : Get Local Variable - Double */
jpayne@69 1157 jvmtiError (JNICALL *GetLocalDouble) (jvmtiEnv* env,
jpayne@69 1158 jthread thread,
jpayne@69 1159 jint depth,
jpayne@69 1160 jint slot,
jpayne@69 1161 jdouble* value_ptr);
jpayne@69 1162
jpayne@69 1163 /* 26 : Set Local Variable - Object */
jpayne@69 1164 jvmtiError (JNICALL *SetLocalObject) (jvmtiEnv* env,
jpayne@69 1165 jthread thread,
jpayne@69 1166 jint depth,
jpayne@69 1167 jint slot,
jpayne@69 1168 jobject value);
jpayne@69 1169
jpayne@69 1170 /* 27 : Set Local Variable - Int */
jpayne@69 1171 jvmtiError (JNICALL *SetLocalInt) (jvmtiEnv* env,
jpayne@69 1172 jthread thread,
jpayne@69 1173 jint depth,
jpayne@69 1174 jint slot,
jpayne@69 1175 jint value);
jpayne@69 1176
jpayne@69 1177 /* 28 : Set Local Variable - Long */
jpayne@69 1178 jvmtiError (JNICALL *SetLocalLong) (jvmtiEnv* env,
jpayne@69 1179 jthread thread,
jpayne@69 1180 jint depth,
jpayne@69 1181 jint slot,
jpayne@69 1182 jlong value);
jpayne@69 1183
jpayne@69 1184 /* 29 : Set Local Variable - Float */
jpayne@69 1185 jvmtiError (JNICALL *SetLocalFloat) (jvmtiEnv* env,
jpayne@69 1186 jthread thread,
jpayne@69 1187 jint depth,
jpayne@69 1188 jint slot,
jpayne@69 1189 jfloat value);
jpayne@69 1190
jpayne@69 1191 /* 30 : Set Local Variable - Double */
jpayne@69 1192 jvmtiError (JNICALL *SetLocalDouble) (jvmtiEnv* env,
jpayne@69 1193 jthread thread,
jpayne@69 1194 jint depth,
jpayne@69 1195 jint slot,
jpayne@69 1196 jdouble value);
jpayne@69 1197
jpayne@69 1198 /* 31 : Create Raw Monitor */
jpayne@69 1199 jvmtiError (JNICALL *CreateRawMonitor) (jvmtiEnv* env,
jpayne@69 1200 const char* name,
jpayne@69 1201 jrawMonitorID* monitor_ptr);
jpayne@69 1202
jpayne@69 1203 /* 32 : Destroy Raw Monitor */
jpayne@69 1204 jvmtiError (JNICALL *DestroyRawMonitor) (jvmtiEnv* env,
jpayne@69 1205 jrawMonitorID monitor);
jpayne@69 1206
jpayne@69 1207 /* 33 : Raw Monitor Enter */
jpayne@69 1208 jvmtiError (JNICALL *RawMonitorEnter) (jvmtiEnv* env,
jpayne@69 1209 jrawMonitorID monitor);
jpayne@69 1210
jpayne@69 1211 /* 34 : Raw Monitor Exit */
jpayne@69 1212 jvmtiError (JNICALL *RawMonitorExit) (jvmtiEnv* env,
jpayne@69 1213 jrawMonitorID monitor);
jpayne@69 1214
jpayne@69 1215 /* 35 : Raw Monitor Wait */
jpayne@69 1216 jvmtiError (JNICALL *RawMonitorWait) (jvmtiEnv* env,
jpayne@69 1217 jrawMonitorID monitor,
jpayne@69 1218 jlong millis);
jpayne@69 1219
jpayne@69 1220 /* 36 : Raw Monitor Notify */
jpayne@69 1221 jvmtiError (JNICALL *RawMonitorNotify) (jvmtiEnv* env,
jpayne@69 1222 jrawMonitorID monitor);
jpayne@69 1223
jpayne@69 1224 /* 37 : Raw Monitor Notify All */
jpayne@69 1225 jvmtiError (JNICALL *RawMonitorNotifyAll) (jvmtiEnv* env,
jpayne@69 1226 jrawMonitorID monitor);
jpayne@69 1227
jpayne@69 1228 /* 38 : Set Breakpoint */
jpayne@69 1229 jvmtiError (JNICALL *SetBreakpoint) (jvmtiEnv* env,
jpayne@69 1230 jmethodID method,
jpayne@69 1231 jlocation location);
jpayne@69 1232
jpayne@69 1233 /* 39 : Clear Breakpoint */
jpayne@69 1234 jvmtiError (JNICALL *ClearBreakpoint) (jvmtiEnv* env,
jpayne@69 1235 jmethodID method,
jpayne@69 1236 jlocation location);
jpayne@69 1237
jpayne@69 1238 /* 40 : Get Named Module */
jpayne@69 1239 jvmtiError (JNICALL *GetNamedModule) (jvmtiEnv* env,
jpayne@69 1240 jobject class_loader,
jpayne@69 1241 const char* package_name,
jpayne@69 1242 jobject* module_ptr);
jpayne@69 1243
jpayne@69 1244 /* 41 : Set Field Access Watch */
jpayne@69 1245 jvmtiError (JNICALL *SetFieldAccessWatch) (jvmtiEnv* env,
jpayne@69 1246 jclass klass,
jpayne@69 1247 jfieldID field);
jpayne@69 1248
jpayne@69 1249 /* 42 : Clear Field Access Watch */
jpayne@69 1250 jvmtiError (JNICALL *ClearFieldAccessWatch) (jvmtiEnv* env,
jpayne@69 1251 jclass klass,
jpayne@69 1252 jfieldID field);
jpayne@69 1253
jpayne@69 1254 /* 43 : Set Field Modification Watch */
jpayne@69 1255 jvmtiError (JNICALL *SetFieldModificationWatch) (jvmtiEnv* env,
jpayne@69 1256 jclass klass,
jpayne@69 1257 jfieldID field);
jpayne@69 1258
jpayne@69 1259 /* 44 : Clear Field Modification Watch */
jpayne@69 1260 jvmtiError (JNICALL *ClearFieldModificationWatch) (jvmtiEnv* env,
jpayne@69 1261 jclass klass,
jpayne@69 1262 jfieldID field);
jpayne@69 1263
jpayne@69 1264 /* 45 : Is Modifiable Class */
jpayne@69 1265 jvmtiError (JNICALL *IsModifiableClass) (jvmtiEnv* env,
jpayne@69 1266 jclass klass,
jpayne@69 1267 jboolean* is_modifiable_class_ptr);
jpayne@69 1268
jpayne@69 1269 /* 46 : Allocate */
jpayne@69 1270 jvmtiError (JNICALL *Allocate) (jvmtiEnv* env,
jpayne@69 1271 jlong size,
jpayne@69 1272 unsigned char** mem_ptr);
jpayne@69 1273
jpayne@69 1274 /* 47 : Deallocate */
jpayne@69 1275 jvmtiError (JNICALL *Deallocate) (jvmtiEnv* env,
jpayne@69 1276 unsigned char* mem);
jpayne@69 1277
jpayne@69 1278 /* 48 : Get Class Signature */
jpayne@69 1279 jvmtiError (JNICALL *GetClassSignature) (jvmtiEnv* env,
jpayne@69 1280 jclass klass,
jpayne@69 1281 char** signature_ptr,
jpayne@69 1282 char** generic_ptr);
jpayne@69 1283
jpayne@69 1284 /* 49 : Get Class Status */
jpayne@69 1285 jvmtiError (JNICALL *GetClassStatus) (jvmtiEnv* env,
jpayne@69 1286 jclass klass,
jpayne@69 1287 jint* status_ptr);
jpayne@69 1288
jpayne@69 1289 /* 50 : Get Source File Name */
jpayne@69 1290 jvmtiError (JNICALL *GetSourceFileName) (jvmtiEnv* env,
jpayne@69 1291 jclass klass,
jpayne@69 1292 char** source_name_ptr);
jpayne@69 1293
jpayne@69 1294 /* 51 : Get Class Modifiers */
jpayne@69 1295 jvmtiError (JNICALL *GetClassModifiers) (jvmtiEnv* env,
jpayne@69 1296 jclass klass,
jpayne@69 1297 jint* modifiers_ptr);
jpayne@69 1298
jpayne@69 1299 /* 52 : Get Class Methods */
jpayne@69 1300 jvmtiError (JNICALL *GetClassMethods) (jvmtiEnv* env,
jpayne@69 1301 jclass klass,
jpayne@69 1302 jint* method_count_ptr,
jpayne@69 1303 jmethodID** methods_ptr);
jpayne@69 1304
jpayne@69 1305 /* 53 : Get Class Fields */
jpayne@69 1306 jvmtiError (JNICALL *GetClassFields) (jvmtiEnv* env,
jpayne@69 1307 jclass klass,
jpayne@69 1308 jint* field_count_ptr,
jpayne@69 1309 jfieldID** fields_ptr);
jpayne@69 1310
jpayne@69 1311 /* 54 : Get Implemented Interfaces */
jpayne@69 1312 jvmtiError (JNICALL *GetImplementedInterfaces) (jvmtiEnv* env,
jpayne@69 1313 jclass klass,
jpayne@69 1314 jint* interface_count_ptr,
jpayne@69 1315 jclass** interfaces_ptr);
jpayne@69 1316
jpayne@69 1317 /* 55 : Is Interface */
jpayne@69 1318 jvmtiError (JNICALL *IsInterface) (jvmtiEnv* env,
jpayne@69 1319 jclass klass,
jpayne@69 1320 jboolean* is_interface_ptr);
jpayne@69 1321
jpayne@69 1322 /* 56 : Is Array Class */
jpayne@69 1323 jvmtiError (JNICALL *IsArrayClass) (jvmtiEnv* env,
jpayne@69 1324 jclass klass,
jpayne@69 1325 jboolean* is_array_class_ptr);
jpayne@69 1326
jpayne@69 1327 /* 57 : Get Class Loader */
jpayne@69 1328 jvmtiError (JNICALL *GetClassLoader) (jvmtiEnv* env,
jpayne@69 1329 jclass klass,
jpayne@69 1330 jobject* classloader_ptr);
jpayne@69 1331
jpayne@69 1332 /* 58 : Get Object Hash Code */
jpayne@69 1333 jvmtiError (JNICALL *GetObjectHashCode) (jvmtiEnv* env,
jpayne@69 1334 jobject object,
jpayne@69 1335 jint* hash_code_ptr);
jpayne@69 1336
jpayne@69 1337 /* 59 : Get Object Monitor Usage */
jpayne@69 1338 jvmtiError (JNICALL *GetObjectMonitorUsage) (jvmtiEnv* env,
jpayne@69 1339 jobject object,
jpayne@69 1340 jvmtiMonitorUsage* info_ptr);
jpayne@69 1341
jpayne@69 1342 /* 60 : Get Field Name (and Signature) */
jpayne@69 1343 jvmtiError (JNICALL *GetFieldName) (jvmtiEnv* env,
jpayne@69 1344 jclass klass,
jpayne@69 1345 jfieldID field,
jpayne@69 1346 char** name_ptr,
jpayne@69 1347 char** signature_ptr,
jpayne@69 1348 char** generic_ptr);
jpayne@69 1349
jpayne@69 1350 /* 61 : Get Field Declaring Class */
jpayne@69 1351 jvmtiError (JNICALL *GetFieldDeclaringClass) (jvmtiEnv* env,
jpayne@69 1352 jclass klass,
jpayne@69 1353 jfieldID field,
jpayne@69 1354 jclass* declaring_class_ptr);
jpayne@69 1355
jpayne@69 1356 /* 62 : Get Field Modifiers */
jpayne@69 1357 jvmtiError (JNICALL *GetFieldModifiers) (jvmtiEnv* env,
jpayne@69 1358 jclass klass,
jpayne@69 1359 jfieldID field,
jpayne@69 1360 jint* modifiers_ptr);
jpayne@69 1361
jpayne@69 1362 /* 63 : Is Field Synthetic */
jpayne@69 1363 jvmtiError (JNICALL *IsFieldSynthetic) (jvmtiEnv* env,
jpayne@69 1364 jclass klass,
jpayne@69 1365 jfieldID field,
jpayne@69 1366 jboolean* is_synthetic_ptr);
jpayne@69 1367
jpayne@69 1368 /* 64 : Get Method Name (and Signature) */
jpayne@69 1369 jvmtiError (JNICALL *GetMethodName) (jvmtiEnv* env,
jpayne@69 1370 jmethodID method,
jpayne@69 1371 char** name_ptr,
jpayne@69 1372 char** signature_ptr,
jpayne@69 1373 char** generic_ptr);
jpayne@69 1374
jpayne@69 1375 /* 65 : Get Method Declaring Class */
jpayne@69 1376 jvmtiError (JNICALL *GetMethodDeclaringClass) (jvmtiEnv* env,
jpayne@69 1377 jmethodID method,
jpayne@69 1378 jclass* declaring_class_ptr);
jpayne@69 1379
jpayne@69 1380 /* 66 : Get Method Modifiers */
jpayne@69 1381 jvmtiError (JNICALL *GetMethodModifiers) (jvmtiEnv* env,
jpayne@69 1382 jmethodID method,
jpayne@69 1383 jint* modifiers_ptr);
jpayne@69 1384
jpayne@69 1385 /* 67 : RESERVED */
jpayne@69 1386 void *reserved67;
jpayne@69 1387
jpayne@69 1388 /* 68 : Get Max Locals */
jpayne@69 1389 jvmtiError (JNICALL *GetMaxLocals) (jvmtiEnv* env,
jpayne@69 1390 jmethodID method,
jpayne@69 1391 jint* max_ptr);
jpayne@69 1392
jpayne@69 1393 /* 69 : Get Arguments Size */
jpayne@69 1394 jvmtiError (JNICALL *GetArgumentsSize) (jvmtiEnv* env,
jpayne@69 1395 jmethodID method,
jpayne@69 1396 jint* size_ptr);
jpayne@69 1397
jpayne@69 1398 /* 70 : Get Line Number Table */
jpayne@69 1399 jvmtiError (JNICALL *GetLineNumberTable) (jvmtiEnv* env,
jpayne@69 1400 jmethodID method,
jpayne@69 1401 jint* entry_count_ptr,
jpayne@69 1402 jvmtiLineNumberEntry** table_ptr);
jpayne@69 1403
jpayne@69 1404 /* 71 : Get Method Location */
jpayne@69 1405 jvmtiError (JNICALL *GetMethodLocation) (jvmtiEnv* env,
jpayne@69 1406 jmethodID method,
jpayne@69 1407 jlocation* start_location_ptr,
jpayne@69 1408 jlocation* end_location_ptr);
jpayne@69 1409
jpayne@69 1410 /* 72 : Get Local Variable Table */
jpayne@69 1411 jvmtiError (JNICALL *GetLocalVariableTable) (jvmtiEnv* env,
jpayne@69 1412 jmethodID method,
jpayne@69 1413 jint* entry_count_ptr,
jpayne@69 1414 jvmtiLocalVariableEntry** table_ptr);
jpayne@69 1415
jpayne@69 1416 /* 73 : Set Native Method Prefix */
jpayne@69 1417 jvmtiError (JNICALL *SetNativeMethodPrefix) (jvmtiEnv* env,
jpayne@69 1418 const char* prefix);
jpayne@69 1419
jpayne@69 1420 /* 74 : Set Native Method Prefixes */
jpayne@69 1421 jvmtiError (JNICALL *SetNativeMethodPrefixes) (jvmtiEnv* env,
jpayne@69 1422 jint prefix_count,
jpayne@69 1423 char** prefixes);
jpayne@69 1424
jpayne@69 1425 /* 75 : Get Bytecodes */
jpayne@69 1426 jvmtiError (JNICALL *GetBytecodes) (jvmtiEnv* env,
jpayne@69 1427 jmethodID method,
jpayne@69 1428 jint* bytecode_count_ptr,
jpayne@69 1429 unsigned char** bytecodes_ptr);
jpayne@69 1430
jpayne@69 1431 /* 76 : Is Method Native */
jpayne@69 1432 jvmtiError (JNICALL *IsMethodNative) (jvmtiEnv* env,
jpayne@69 1433 jmethodID method,
jpayne@69 1434 jboolean* is_native_ptr);
jpayne@69 1435
jpayne@69 1436 /* 77 : Is Method Synthetic */
jpayne@69 1437 jvmtiError (JNICALL *IsMethodSynthetic) (jvmtiEnv* env,
jpayne@69 1438 jmethodID method,
jpayne@69 1439 jboolean* is_synthetic_ptr);
jpayne@69 1440
jpayne@69 1441 /* 78 : Get Loaded Classes */
jpayne@69 1442 jvmtiError (JNICALL *GetLoadedClasses) (jvmtiEnv* env,
jpayne@69 1443 jint* class_count_ptr,
jpayne@69 1444 jclass** classes_ptr);
jpayne@69 1445
jpayne@69 1446 /* 79 : Get Classloader Classes */
jpayne@69 1447 jvmtiError (JNICALL *GetClassLoaderClasses) (jvmtiEnv* env,
jpayne@69 1448 jobject initiating_loader,
jpayne@69 1449 jint* class_count_ptr,
jpayne@69 1450 jclass** classes_ptr);
jpayne@69 1451
jpayne@69 1452 /* 80 : Pop Frame */
jpayne@69 1453 jvmtiError (JNICALL *PopFrame) (jvmtiEnv* env,
jpayne@69 1454 jthread thread);
jpayne@69 1455
jpayne@69 1456 /* 81 : Force Early Return - Object */
jpayne@69 1457 jvmtiError (JNICALL *ForceEarlyReturnObject) (jvmtiEnv* env,
jpayne@69 1458 jthread thread,
jpayne@69 1459 jobject value);
jpayne@69 1460
jpayne@69 1461 /* 82 : Force Early Return - Int */
jpayne@69 1462 jvmtiError (JNICALL *ForceEarlyReturnInt) (jvmtiEnv* env,
jpayne@69 1463 jthread thread,
jpayne@69 1464 jint value);
jpayne@69 1465
jpayne@69 1466 /* 83 : Force Early Return - Long */
jpayne@69 1467 jvmtiError (JNICALL *ForceEarlyReturnLong) (jvmtiEnv* env,
jpayne@69 1468 jthread thread,
jpayne@69 1469 jlong value);
jpayne@69 1470
jpayne@69 1471 /* 84 : Force Early Return - Float */
jpayne@69 1472 jvmtiError (JNICALL *ForceEarlyReturnFloat) (jvmtiEnv* env,
jpayne@69 1473 jthread thread,
jpayne@69 1474 jfloat value);
jpayne@69 1475
jpayne@69 1476 /* 85 : Force Early Return - Double */
jpayne@69 1477 jvmtiError (JNICALL *ForceEarlyReturnDouble) (jvmtiEnv* env,
jpayne@69 1478 jthread thread,
jpayne@69 1479 jdouble value);
jpayne@69 1480
jpayne@69 1481 /* 86 : Force Early Return - Void */
jpayne@69 1482 jvmtiError (JNICALL *ForceEarlyReturnVoid) (jvmtiEnv* env,
jpayne@69 1483 jthread thread);
jpayne@69 1484
jpayne@69 1485 /* 87 : Redefine Classes */
jpayne@69 1486 jvmtiError (JNICALL *RedefineClasses) (jvmtiEnv* env,
jpayne@69 1487 jint class_count,
jpayne@69 1488 const jvmtiClassDefinition* class_definitions);
jpayne@69 1489
jpayne@69 1490 /* 88 : Get Version Number */
jpayne@69 1491 jvmtiError (JNICALL *GetVersionNumber) (jvmtiEnv* env,
jpayne@69 1492 jint* version_ptr);
jpayne@69 1493
jpayne@69 1494 /* 89 : Get Capabilities */
jpayne@69 1495 jvmtiError (JNICALL *GetCapabilities) (jvmtiEnv* env,
jpayne@69 1496 jvmtiCapabilities* capabilities_ptr);
jpayne@69 1497
jpayne@69 1498 /* 90 : Get Source Debug Extension */
jpayne@69 1499 jvmtiError (JNICALL *GetSourceDebugExtension) (jvmtiEnv* env,
jpayne@69 1500 jclass klass,
jpayne@69 1501 char** source_debug_extension_ptr);
jpayne@69 1502
jpayne@69 1503 /* 91 : Is Method Obsolete */
jpayne@69 1504 jvmtiError (JNICALL *IsMethodObsolete) (jvmtiEnv* env,
jpayne@69 1505 jmethodID method,
jpayne@69 1506 jboolean* is_obsolete_ptr);
jpayne@69 1507
jpayne@69 1508 /* 92 : Suspend Thread List */
jpayne@69 1509 jvmtiError (JNICALL *SuspendThreadList) (jvmtiEnv* env,
jpayne@69 1510 jint request_count,
jpayne@69 1511 const jthread* request_list,
jpayne@69 1512 jvmtiError* results);
jpayne@69 1513
jpayne@69 1514 /* 93 : Resume Thread List */
jpayne@69 1515 jvmtiError (JNICALL *ResumeThreadList) (jvmtiEnv* env,
jpayne@69 1516 jint request_count,
jpayne@69 1517 const jthread* request_list,
jpayne@69 1518 jvmtiError* results);
jpayne@69 1519
jpayne@69 1520 /* 94 : Add Module Reads */
jpayne@69 1521 jvmtiError (JNICALL *AddModuleReads) (jvmtiEnv* env,
jpayne@69 1522 jobject module,
jpayne@69 1523 jobject to_module);
jpayne@69 1524
jpayne@69 1525 /* 95 : Add Module Exports */
jpayne@69 1526 jvmtiError (JNICALL *AddModuleExports) (jvmtiEnv* env,
jpayne@69 1527 jobject module,
jpayne@69 1528 const char* pkg_name,
jpayne@69 1529 jobject to_module);
jpayne@69 1530
jpayne@69 1531 /* 96 : Add Module Opens */
jpayne@69 1532 jvmtiError (JNICALL *AddModuleOpens) (jvmtiEnv* env,
jpayne@69 1533 jobject module,
jpayne@69 1534 const char* pkg_name,
jpayne@69 1535 jobject to_module);
jpayne@69 1536
jpayne@69 1537 /* 97 : Add Module Uses */
jpayne@69 1538 jvmtiError (JNICALL *AddModuleUses) (jvmtiEnv* env,
jpayne@69 1539 jobject module,
jpayne@69 1540 jclass service);
jpayne@69 1541
jpayne@69 1542 /* 98 : Add Module Provides */
jpayne@69 1543 jvmtiError (JNICALL *AddModuleProvides) (jvmtiEnv* env,
jpayne@69 1544 jobject module,
jpayne@69 1545 jclass service,
jpayne@69 1546 jclass impl_class);
jpayne@69 1547
jpayne@69 1548 /* 99 : Is Modifiable Module */
jpayne@69 1549 jvmtiError (JNICALL *IsModifiableModule) (jvmtiEnv* env,
jpayne@69 1550 jobject module,
jpayne@69 1551 jboolean* is_modifiable_module_ptr);
jpayne@69 1552
jpayne@69 1553 /* 100 : Get All Stack Traces */
jpayne@69 1554 jvmtiError (JNICALL *GetAllStackTraces) (jvmtiEnv* env,
jpayne@69 1555 jint max_frame_count,
jpayne@69 1556 jvmtiStackInfo** stack_info_ptr,
jpayne@69 1557 jint* thread_count_ptr);
jpayne@69 1558
jpayne@69 1559 /* 101 : Get Thread List Stack Traces */
jpayne@69 1560 jvmtiError (JNICALL *GetThreadListStackTraces) (jvmtiEnv* env,
jpayne@69 1561 jint thread_count,
jpayne@69 1562 const jthread* thread_list,
jpayne@69 1563 jint max_frame_count,
jpayne@69 1564 jvmtiStackInfo** stack_info_ptr);
jpayne@69 1565
jpayne@69 1566 /* 102 : Get Thread Local Storage */
jpayne@69 1567 jvmtiError (JNICALL *GetThreadLocalStorage) (jvmtiEnv* env,
jpayne@69 1568 jthread thread,
jpayne@69 1569 void** data_ptr);
jpayne@69 1570
jpayne@69 1571 /* 103 : Set Thread Local Storage */
jpayne@69 1572 jvmtiError (JNICALL *SetThreadLocalStorage) (jvmtiEnv* env,
jpayne@69 1573 jthread thread,
jpayne@69 1574 const void* data);
jpayne@69 1575
jpayne@69 1576 /* 104 : Get Stack Trace */
jpayne@69 1577 jvmtiError (JNICALL *GetStackTrace) (jvmtiEnv* env,
jpayne@69 1578 jthread thread,
jpayne@69 1579 jint start_depth,
jpayne@69 1580 jint max_frame_count,
jpayne@69 1581 jvmtiFrameInfo* frame_buffer,
jpayne@69 1582 jint* count_ptr);
jpayne@69 1583
jpayne@69 1584 /* 105 : RESERVED */
jpayne@69 1585 void *reserved105;
jpayne@69 1586
jpayne@69 1587 /* 106 : Get Tag */
jpayne@69 1588 jvmtiError (JNICALL *GetTag) (jvmtiEnv* env,
jpayne@69 1589 jobject object,
jpayne@69 1590 jlong* tag_ptr);
jpayne@69 1591
jpayne@69 1592 /* 107 : Set Tag */
jpayne@69 1593 jvmtiError (JNICALL *SetTag) (jvmtiEnv* env,
jpayne@69 1594 jobject object,
jpayne@69 1595 jlong tag);
jpayne@69 1596
jpayne@69 1597 /* 108 : Force Garbage Collection */
jpayne@69 1598 jvmtiError (JNICALL *ForceGarbageCollection) (jvmtiEnv* env);
jpayne@69 1599
jpayne@69 1600 /* 109 : Iterate Over Objects Reachable From Object */
jpayne@69 1601 jvmtiError (JNICALL *IterateOverObjectsReachableFromObject) (jvmtiEnv* env,
jpayne@69 1602 jobject object,
jpayne@69 1603 jvmtiObjectReferenceCallback object_reference_callback,
jpayne@69 1604 const void* user_data);
jpayne@69 1605
jpayne@69 1606 /* 110 : Iterate Over Reachable Objects */
jpayne@69 1607 jvmtiError (JNICALL *IterateOverReachableObjects) (jvmtiEnv* env,
jpayne@69 1608 jvmtiHeapRootCallback heap_root_callback,
jpayne@69 1609 jvmtiStackReferenceCallback stack_ref_callback,
jpayne@69 1610 jvmtiObjectReferenceCallback object_ref_callback,
jpayne@69 1611 const void* user_data);
jpayne@69 1612
jpayne@69 1613 /* 111 : Iterate Over Heap */
jpayne@69 1614 jvmtiError (JNICALL *IterateOverHeap) (jvmtiEnv* env,
jpayne@69 1615 jvmtiHeapObjectFilter object_filter,
jpayne@69 1616 jvmtiHeapObjectCallback heap_object_callback,
jpayne@69 1617 const void* user_data);
jpayne@69 1618
jpayne@69 1619 /* 112 : Iterate Over Instances Of Class */
jpayne@69 1620 jvmtiError (JNICALL *IterateOverInstancesOfClass) (jvmtiEnv* env,
jpayne@69 1621 jclass klass,
jpayne@69 1622 jvmtiHeapObjectFilter object_filter,
jpayne@69 1623 jvmtiHeapObjectCallback heap_object_callback,
jpayne@69 1624 const void* user_data);
jpayne@69 1625
jpayne@69 1626 /* 113 : RESERVED */
jpayne@69 1627 void *reserved113;
jpayne@69 1628
jpayne@69 1629 /* 114 : Get Objects With Tags */
jpayne@69 1630 jvmtiError (JNICALL *GetObjectsWithTags) (jvmtiEnv* env,
jpayne@69 1631 jint tag_count,
jpayne@69 1632 const jlong* tags,
jpayne@69 1633 jint* count_ptr,
jpayne@69 1634 jobject** object_result_ptr,
jpayne@69 1635 jlong** tag_result_ptr);
jpayne@69 1636
jpayne@69 1637 /* 115 : Follow References */
jpayne@69 1638 jvmtiError (JNICALL *FollowReferences) (jvmtiEnv* env,
jpayne@69 1639 jint heap_filter,
jpayne@69 1640 jclass klass,
jpayne@69 1641 jobject initial_object,
jpayne@69 1642 const jvmtiHeapCallbacks* callbacks,
jpayne@69 1643 const void* user_data);
jpayne@69 1644
jpayne@69 1645 /* 116 : Iterate Through Heap */
jpayne@69 1646 jvmtiError (JNICALL *IterateThroughHeap) (jvmtiEnv* env,
jpayne@69 1647 jint heap_filter,
jpayne@69 1648 jclass klass,
jpayne@69 1649 const jvmtiHeapCallbacks* callbacks,
jpayne@69 1650 const void* user_data);
jpayne@69 1651
jpayne@69 1652 /* 117 : RESERVED */
jpayne@69 1653 void *reserved117;
jpayne@69 1654
jpayne@69 1655 /* 118 : RESERVED */
jpayne@69 1656 void *reserved118;
jpayne@69 1657
jpayne@69 1658 /* 119 : RESERVED */
jpayne@69 1659 void *reserved119;
jpayne@69 1660
jpayne@69 1661 /* 120 : Set JNI Function Table */
jpayne@69 1662 jvmtiError (JNICALL *SetJNIFunctionTable) (jvmtiEnv* env,
jpayne@69 1663 const jniNativeInterface* function_table);
jpayne@69 1664
jpayne@69 1665 /* 121 : Get JNI Function Table */
jpayne@69 1666 jvmtiError (JNICALL *GetJNIFunctionTable) (jvmtiEnv* env,
jpayne@69 1667 jniNativeInterface** function_table);
jpayne@69 1668
jpayne@69 1669 /* 122 : Set Event Callbacks */
jpayne@69 1670 jvmtiError (JNICALL *SetEventCallbacks) (jvmtiEnv* env,
jpayne@69 1671 const jvmtiEventCallbacks* callbacks,
jpayne@69 1672 jint size_of_callbacks);
jpayne@69 1673
jpayne@69 1674 /* 123 : Generate Events */
jpayne@69 1675 jvmtiError (JNICALL *GenerateEvents) (jvmtiEnv* env,
jpayne@69 1676 jvmtiEvent event_type);
jpayne@69 1677
jpayne@69 1678 /* 124 : Get Extension Functions */
jpayne@69 1679 jvmtiError (JNICALL *GetExtensionFunctions) (jvmtiEnv* env,
jpayne@69 1680 jint* extension_count_ptr,
jpayne@69 1681 jvmtiExtensionFunctionInfo** extensions);
jpayne@69 1682
jpayne@69 1683 /* 125 : Get Extension Events */
jpayne@69 1684 jvmtiError (JNICALL *GetExtensionEvents) (jvmtiEnv* env,
jpayne@69 1685 jint* extension_count_ptr,
jpayne@69 1686 jvmtiExtensionEventInfo** extensions);
jpayne@69 1687
jpayne@69 1688 /* 126 : Set Extension Event Callback */
jpayne@69 1689 jvmtiError (JNICALL *SetExtensionEventCallback) (jvmtiEnv* env,
jpayne@69 1690 jint extension_event_index,
jpayne@69 1691 jvmtiExtensionEvent callback);
jpayne@69 1692
jpayne@69 1693 /* 127 : Dispose Environment */
jpayne@69 1694 jvmtiError (JNICALL *DisposeEnvironment) (jvmtiEnv* env);
jpayne@69 1695
jpayne@69 1696 /* 128 : Get Error Name */
jpayne@69 1697 jvmtiError (JNICALL *GetErrorName) (jvmtiEnv* env,
jpayne@69 1698 jvmtiError error,
jpayne@69 1699 char** name_ptr);
jpayne@69 1700
jpayne@69 1701 /* 129 : Get JLocation Format */
jpayne@69 1702 jvmtiError (JNICALL *GetJLocationFormat) (jvmtiEnv* env,
jpayne@69 1703 jvmtiJlocationFormat* format_ptr);
jpayne@69 1704
jpayne@69 1705 /* 130 : Get System Properties */
jpayne@69 1706 jvmtiError (JNICALL *GetSystemProperties) (jvmtiEnv* env,
jpayne@69 1707 jint* count_ptr,
jpayne@69 1708 char*** property_ptr);
jpayne@69 1709
jpayne@69 1710 /* 131 : Get System Property */
jpayne@69 1711 jvmtiError (JNICALL *GetSystemProperty) (jvmtiEnv* env,
jpayne@69 1712 const char* property,
jpayne@69 1713 char** value_ptr);
jpayne@69 1714
jpayne@69 1715 /* 132 : Set System Property */
jpayne@69 1716 jvmtiError (JNICALL *SetSystemProperty) (jvmtiEnv* env,
jpayne@69 1717 const char* property,
jpayne@69 1718 const char* value_ptr);
jpayne@69 1719
jpayne@69 1720 /* 133 : Get Phase */
jpayne@69 1721 jvmtiError (JNICALL *GetPhase) (jvmtiEnv* env,
jpayne@69 1722 jvmtiPhase* phase_ptr);
jpayne@69 1723
jpayne@69 1724 /* 134 : Get Current Thread CPU Timer Information */
jpayne@69 1725 jvmtiError (JNICALL *GetCurrentThreadCpuTimerInfo) (jvmtiEnv* env,
jpayne@69 1726 jvmtiTimerInfo* info_ptr);
jpayne@69 1727
jpayne@69 1728 /* 135 : Get Current Thread CPU Time */
jpayne@69 1729 jvmtiError (JNICALL *GetCurrentThreadCpuTime) (jvmtiEnv* env,
jpayne@69 1730 jlong* nanos_ptr);
jpayne@69 1731
jpayne@69 1732 /* 136 : Get Thread CPU Timer Information */
jpayne@69 1733 jvmtiError (JNICALL *GetThreadCpuTimerInfo) (jvmtiEnv* env,
jpayne@69 1734 jvmtiTimerInfo* info_ptr);
jpayne@69 1735
jpayne@69 1736 /* 137 : Get Thread CPU Time */
jpayne@69 1737 jvmtiError (JNICALL *GetThreadCpuTime) (jvmtiEnv* env,
jpayne@69 1738 jthread thread,
jpayne@69 1739 jlong* nanos_ptr);
jpayne@69 1740
jpayne@69 1741 /* 138 : Get Timer Information */
jpayne@69 1742 jvmtiError (JNICALL *GetTimerInfo) (jvmtiEnv* env,
jpayne@69 1743 jvmtiTimerInfo* info_ptr);
jpayne@69 1744
jpayne@69 1745 /* 139 : Get Time */
jpayne@69 1746 jvmtiError (JNICALL *GetTime) (jvmtiEnv* env,
jpayne@69 1747 jlong* nanos_ptr);
jpayne@69 1748
jpayne@69 1749 /* 140 : Get Potential Capabilities */
jpayne@69 1750 jvmtiError (JNICALL *GetPotentialCapabilities) (jvmtiEnv* env,
jpayne@69 1751 jvmtiCapabilities* capabilities_ptr);
jpayne@69 1752
jpayne@69 1753 /* 141 : RESERVED */
jpayne@69 1754 void *reserved141;
jpayne@69 1755
jpayne@69 1756 /* 142 : Add Capabilities */
jpayne@69 1757 jvmtiError (JNICALL *AddCapabilities) (jvmtiEnv* env,
jpayne@69 1758 const jvmtiCapabilities* capabilities_ptr);
jpayne@69 1759
jpayne@69 1760 /* 143 : Relinquish Capabilities */
jpayne@69 1761 jvmtiError (JNICALL *RelinquishCapabilities) (jvmtiEnv* env,
jpayne@69 1762 const jvmtiCapabilities* capabilities_ptr);
jpayne@69 1763
jpayne@69 1764 /* 144 : Get Available Processors */
jpayne@69 1765 jvmtiError (JNICALL *GetAvailableProcessors) (jvmtiEnv* env,
jpayne@69 1766 jint* processor_count_ptr);
jpayne@69 1767
jpayne@69 1768 /* 145 : Get Class Version Numbers */
jpayne@69 1769 jvmtiError (JNICALL *GetClassVersionNumbers) (jvmtiEnv* env,
jpayne@69 1770 jclass klass,
jpayne@69 1771 jint* minor_version_ptr,
jpayne@69 1772 jint* major_version_ptr);
jpayne@69 1773
jpayne@69 1774 /* 146 : Get Constant Pool */
jpayne@69 1775 jvmtiError (JNICALL *GetConstantPool) (jvmtiEnv* env,
jpayne@69 1776 jclass klass,
jpayne@69 1777 jint* constant_pool_count_ptr,
jpayne@69 1778 jint* constant_pool_byte_count_ptr,
jpayne@69 1779 unsigned char** constant_pool_bytes_ptr);
jpayne@69 1780
jpayne@69 1781 /* 147 : Get Environment Local Storage */
jpayne@69 1782 jvmtiError (JNICALL *GetEnvironmentLocalStorage) (jvmtiEnv* env,
jpayne@69 1783 void** data_ptr);
jpayne@69 1784
jpayne@69 1785 /* 148 : Set Environment Local Storage */
jpayne@69 1786 jvmtiError (JNICALL *SetEnvironmentLocalStorage) (jvmtiEnv* env,
jpayne@69 1787 const void* data);
jpayne@69 1788
jpayne@69 1789 /* 149 : Add To Bootstrap Class Loader Search */
jpayne@69 1790 jvmtiError (JNICALL *AddToBootstrapClassLoaderSearch) (jvmtiEnv* env,
jpayne@69 1791 const char* segment);
jpayne@69 1792
jpayne@69 1793 /* 150 : Set Verbose Flag */
jpayne@69 1794 jvmtiError (JNICALL *SetVerboseFlag) (jvmtiEnv* env,
jpayne@69 1795 jvmtiVerboseFlag flag,
jpayne@69 1796 jboolean value);
jpayne@69 1797
jpayne@69 1798 /* 151 : Add To System Class Loader Search */
jpayne@69 1799 jvmtiError (JNICALL *AddToSystemClassLoaderSearch) (jvmtiEnv* env,
jpayne@69 1800 const char* segment);
jpayne@69 1801
jpayne@69 1802 /* 152 : Retransform Classes */
jpayne@69 1803 jvmtiError (JNICALL *RetransformClasses) (jvmtiEnv* env,
jpayne@69 1804 jint class_count,
jpayne@69 1805 const jclass* classes);
jpayne@69 1806
jpayne@69 1807 /* 153 : Get Owned Monitor Stack Depth Info */
jpayne@69 1808 jvmtiError (JNICALL *GetOwnedMonitorStackDepthInfo) (jvmtiEnv* env,
jpayne@69 1809 jthread thread,
jpayne@69 1810 jint* monitor_info_count_ptr,
jpayne@69 1811 jvmtiMonitorStackDepthInfo** monitor_info_ptr);
jpayne@69 1812
jpayne@69 1813 /* 154 : Get Object Size */
jpayne@69 1814 jvmtiError (JNICALL *GetObjectSize) (jvmtiEnv* env,
jpayne@69 1815 jobject object,
jpayne@69 1816 jlong* size_ptr);
jpayne@69 1817
jpayne@69 1818 /* 155 : Get Local Instance */
jpayne@69 1819 jvmtiError (JNICALL *GetLocalInstance) (jvmtiEnv* env,
jpayne@69 1820 jthread thread,
jpayne@69 1821 jint depth,
jpayne@69 1822 jobject* value_ptr);
jpayne@69 1823
jpayne@69 1824 /* 156 : Set Heap Sampling Interval */
jpayne@69 1825 jvmtiError (JNICALL *SetHeapSamplingInterval) (jvmtiEnv* env,
jpayne@69 1826 jint sampling_interval);
jpayne@69 1827
jpayne@69 1828 } jvmtiInterface_1;
jpayne@69 1829
jpayne@69 1830 struct _jvmtiEnv {
jpayne@69 1831 const struct jvmtiInterface_1_ *functions;
jpayne@69 1832 #ifdef __cplusplus
jpayne@69 1833
jpayne@69 1834
jpayne@69 1835 jvmtiError Allocate(jlong size,
jpayne@69 1836 unsigned char** mem_ptr) {
jpayne@69 1837 return functions->Allocate(this, size, mem_ptr);
jpayne@69 1838 }
jpayne@69 1839
jpayne@69 1840 jvmtiError Deallocate(unsigned char* mem) {
jpayne@69 1841 return functions->Deallocate(this, mem);
jpayne@69 1842 }
jpayne@69 1843
jpayne@69 1844 jvmtiError GetThreadState(jthread thread,
jpayne@69 1845 jint* thread_state_ptr) {
jpayne@69 1846 return functions->GetThreadState(this, thread, thread_state_ptr);
jpayne@69 1847 }
jpayne@69 1848
jpayne@69 1849 jvmtiError GetCurrentThread(jthread* thread_ptr) {
jpayne@69 1850 return functions->GetCurrentThread(this, thread_ptr);
jpayne@69 1851 }
jpayne@69 1852
jpayne@69 1853 jvmtiError GetAllThreads(jint* threads_count_ptr,
jpayne@69 1854 jthread** threads_ptr) {
jpayne@69 1855 return functions->GetAllThreads(this, threads_count_ptr, threads_ptr);
jpayne@69 1856 }
jpayne@69 1857
jpayne@69 1858 jvmtiError SuspendThread(jthread thread) {
jpayne@69 1859 return functions->SuspendThread(this, thread);
jpayne@69 1860 }
jpayne@69 1861
jpayne@69 1862 jvmtiError SuspendThreadList(jint request_count,
jpayne@69 1863 const jthread* request_list,
jpayne@69 1864 jvmtiError* results) {
jpayne@69 1865 return functions->SuspendThreadList(this, request_count, request_list, results);
jpayne@69 1866 }
jpayne@69 1867
jpayne@69 1868 jvmtiError ResumeThread(jthread thread) {
jpayne@69 1869 return functions->ResumeThread(this, thread);
jpayne@69 1870 }
jpayne@69 1871
jpayne@69 1872 jvmtiError ResumeThreadList(jint request_count,
jpayne@69 1873 const jthread* request_list,
jpayne@69 1874 jvmtiError* results) {
jpayne@69 1875 return functions->ResumeThreadList(this, request_count, request_list, results);
jpayne@69 1876 }
jpayne@69 1877
jpayne@69 1878 jvmtiError StopThread(jthread thread,
jpayne@69 1879 jobject exception) {
jpayne@69 1880 return functions->StopThread(this, thread, exception);
jpayne@69 1881 }
jpayne@69 1882
jpayne@69 1883 jvmtiError InterruptThread(jthread thread) {
jpayne@69 1884 return functions->InterruptThread(this, thread);
jpayne@69 1885 }
jpayne@69 1886
jpayne@69 1887 jvmtiError GetThreadInfo(jthread thread,
jpayne@69 1888 jvmtiThreadInfo* info_ptr) {
jpayne@69 1889 return functions->GetThreadInfo(this, thread, info_ptr);
jpayne@69 1890 }
jpayne@69 1891
jpayne@69 1892 jvmtiError GetOwnedMonitorInfo(jthread thread,
jpayne@69 1893 jint* owned_monitor_count_ptr,
jpayne@69 1894 jobject** owned_monitors_ptr) {
jpayne@69 1895 return functions->GetOwnedMonitorInfo(this, thread, owned_monitor_count_ptr, owned_monitors_ptr);
jpayne@69 1896 }
jpayne@69 1897
jpayne@69 1898 jvmtiError GetOwnedMonitorStackDepthInfo(jthread thread,
jpayne@69 1899 jint* monitor_info_count_ptr,
jpayne@69 1900 jvmtiMonitorStackDepthInfo** monitor_info_ptr) {
jpayne@69 1901 return functions->GetOwnedMonitorStackDepthInfo(this, thread, monitor_info_count_ptr, monitor_info_ptr);
jpayne@69 1902 }
jpayne@69 1903
jpayne@69 1904 jvmtiError GetCurrentContendedMonitor(jthread thread,
jpayne@69 1905 jobject* monitor_ptr) {
jpayne@69 1906 return functions->GetCurrentContendedMonitor(this, thread, monitor_ptr);
jpayne@69 1907 }
jpayne@69 1908
jpayne@69 1909 jvmtiError RunAgentThread(jthread thread,
jpayne@69 1910 jvmtiStartFunction proc,
jpayne@69 1911 const void* arg,
jpayne@69 1912 jint priority) {
jpayne@69 1913 return functions->RunAgentThread(this, thread, proc, arg, priority);
jpayne@69 1914 }
jpayne@69 1915
jpayne@69 1916 jvmtiError SetThreadLocalStorage(jthread thread,
jpayne@69 1917 const void* data) {
jpayne@69 1918 return functions->SetThreadLocalStorage(this, thread, data);
jpayne@69 1919 }
jpayne@69 1920
jpayne@69 1921 jvmtiError GetThreadLocalStorage(jthread thread,
jpayne@69 1922 void** data_ptr) {
jpayne@69 1923 return functions->GetThreadLocalStorage(this, thread, data_ptr);
jpayne@69 1924 }
jpayne@69 1925
jpayne@69 1926 jvmtiError GetTopThreadGroups(jint* group_count_ptr,
jpayne@69 1927 jthreadGroup** groups_ptr) {
jpayne@69 1928 return functions->GetTopThreadGroups(this, group_count_ptr, groups_ptr);
jpayne@69 1929 }
jpayne@69 1930
jpayne@69 1931 jvmtiError GetThreadGroupInfo(jthreadGroup group,
jpayne@69 1932 jvmtiThreadGroupInfo* info_ptr) {
jpayne@69 1933 return functions->GetThreadGroupInfo(this, group, info_ptr);
jpayne@69 1934 }
jpayne@69 1935
jpayne@69 1936 jvmtiError GetThreadGroupChildren(jthreadGroup group,
jpayne@69 1937 jint* thread_count_ptr,
jpayne@69 1938 jthread** threads_ptr,
jpayne@69 1939 jint* group_count_ptr,
jpayne@69 1940 jthreadGroup** groups_ptr) {
jpayne@69 1941 return functions->GetThreadGroupChildren(this, group, thread_count_ptr, threads_ptr, group_count_ptr, groups_ptr);
jpayne@69 1942 }
jpayne@69 1943
jpayne@69 1944 jvmtiError GetStackTrace(jthread thread,
jpayne@69 1945 jint start_depth,
jpayne@69 1946 jint max_frame_count,
jpayne@69 1947 jvmtiFrameInfo* frame_buffer,
jpayne@69 1948 jint* count_ptr) {
jpayne@69 1949 return functions->GetStackTrace(this, thread, start_depth, max_frame_count, frame_buffer, count_ptr);
jpayne@69 1950 }
jpayne@69 1951
jpayne@69 1952 jvmtiError GetAllStackTraces(jint max_frame_count,
jpayne@69 1953 jvmtiStackInfo** stack_info_ptr,
jpayne@69 1954 jint* thread_count_ptr) {
jpayne@69 1955 return functions->GetAllStackTraces(this, max_frame_count, stack_info_ptr, thread_count_ptr);
jpayne@69 1956 }
jpayne@69 1957
jpayne@69 1958 jvmtiError GetThreadListStackTraces(jint thread_count,
jpayne@69 1959 const jthread* thread_list,
jpayne@69 1960 jint max_frame_count,
jpayne@69 1961 jvmtiStackInfo** stack_info_ptr) {
jpayne@69 1962 return functions->GetThreadListStackTraces(this, thread_count, thread_list, max_frame_count, stack_info_ptr);
jpayne@69 1963 }
jpayne@69 1964
jpayne@69 1965 jvmtiError GetFrameCount(jthread thread,
jpayne@69 1966 jint* count_ptr) {
jpayne@69 1967 return functions->GetFrameCount(this, thread, count_ptr);
jpayne@69 1968 }
jpayne@69 1969
jpayne@69 1970 jvmtiError PopFrame(jthread thread) {
jpayne@69 1971 return functions->PopFrame(this, thread);
jpayne@69 1972 }
jpayne@69 1973
jpayne@69 1974 jvmtiError GetFrameLocation(jthread thread,
jpayne@69 1975 jint depth,
jpayne@69 1976 jmethodID* method_ptr,
jpayne@69 1977 jlocation* location_ptr) {
jpayne@69 1978 return functions->GetFrameLocation(this, thread, depth, method_ptr, location_ptr);
jpayne@69 1979 }
jpayne@69 1980
jpayne@69 1981 jvmtiError NotifyFramePop(jthread thread,
jpayne@69 1982 jint depth) {
jpayne@69 1983 return functions->NotifyFramePop(this, thread, depth);
jpayne@69 1984 }
jpayne@69 1985
jpayne@69 1986 jvmtiError ForceEarlyReturnObject(jthread thread,
jpayne@69 1987 jobject value) {
jpayne@69 1988 return functions->ForceEarlyReturnObject(this, thread, value);
jpayne@69 1989 }
jpayne@69 1990
jpayne@69 1991 jvmtiError ForceEarlyReturnInt(jthread thread,
jpayne@69 1992 jint value) {
jpayne@69 1993 return functions->ForceEarlyReturnInt(this, thread, value);
jpayne@69 1994 }
jpayne@69 1995
jpayne@69 1996 jvmtiError ForceEarlyReturnLong(jthread thread,
jpayne@69 1997 jlong value) {
jpayne@69 1998 return functions->ForceEarlyReturnLong(this, thread, value);
jpayne@69 1999 }
jpayne@69 2000
jpayne@69 2001 jvmtiError ForceEarlyReturnFloat(jthread thread,
jpayne@69 2002 jfloat value) {
jpayne@69 2003 return functions->ForceEarlyReturnFloat(this, thread, value);
jpayne@69 2004 }
jpayne@69 2005
jpayne@69 2006 jvmtiError ForceEarlyReturnDouble(jthread thread,
jpayne@69 2007 jdouble value) {
jpayne@69 2008 return functions->ForceEarlyReturnDouble(this, thread, value);
jpayne@69 2009 }
jpayne@69 2010
jpayne@69 2011 jvmtiError ForceEarlyReturnVoid(jthread thread) {
jpayne@69 2012 return functions->ForceEarlyReturnVoid(this, thread);
jpayne@69 2013 }
jpayne@69 2014
jpayne@69 2015 jvmtiError FollowReferences(jint heap_filter,
jpayne@69 2016 jclass klass,
jpayne@69 2017 jobject initial_object,
jpayne@69 2018 const jvmtiHeapCallbacks* callbacks,
jpayne@69 2019 const void* user_data) {
jpayne@69 2020 return functions->FollowReferences(this, heap_filter, klass, initial_object, callbacks, user_data);
jpayne@69 2021 }
jpayne@69 2022
jpayne@69 2023 jvmtiError IterateThroughHeap(jint heap_filter,
jpayne@69 2024 jclass klass,
jpayne@69 2025 const jvmtiHeapCallbacks* callbacks,
jpayne@69 2026 const void* user_data) {
jpayne@69 2027 return functions->IterateThroughHeap(this, heap_filter, klass, callbacks, user_data);
jpayne@69 2028 }
jpayne@69 2029
jpayne@69 2030 jvmtiError GetTag(jobject object,
jpayne@69 2031 jlong* tag_ptr) {
jpayne@69 2032 return functions->GetTag(this, object, tag_ptr);
jpayne@69 2033 }
jpayne@69 2034
jpayne@69 2035 jvmtiError SetTag(jobject object,
jpayne@69 2036 jlong tag) {
jpayne@69 2037 return functions->SetTag(this, object, tag);
jpayne@69 2038 }
jpayne@69 2039
jpayne@69 2040 jvmtiError GetObjectsWithTags(jint tag_count,
jpayne@69 2041 const jlong* tags,
jpayne@69 2042 jint* count_ptr,
jpayne@69 2043 jobject** object_result_ptr,
jpayne@69 2044 jlong** tag_result_ptr) {
jpayne@69 2045 return functions->GetObjectsWithTags(this, tag_count, tags, count_ptr, object_result_ptr, tag_result_ptr);
jpayne@69 2046 }
jpayne@69 2047
jpayne@69 2048 jvmtiError ForceGarbageCollection() {
jpayne@69 2049 return functions->ForceGarbageCollection(this);
jpayne@69 2050 }
jpayne@69 2051
jpayne@69 2052 jvmtiError IterateOverObjectsReachableFromObject(jobject object,
jpayne@69 2053 jvmtiObjectReferenceCallback object_reference_callback,
jpayne@69 2054 const void* user_data) {
jpayne@69 2055 return functions->IterateOverObjectsReachableFromObject(this, object, object_reference_callback, user_data);
jpayne@69 2056 }
jpayne@69 2057
jpayne@69 2058 jvmtiError IterateOverReachableObjects(jvmtiHeapRootCallback heap_root_callback,
jpayne@69 2059 jvmtiStackReferenceCallback stack_ref_callback,
jpayne@69 2060 jvmtiObjectReferenceCallback object_ref_callback,
jpayne@69 2061 const void* user_data) {
jpayne@69 2062 return functions->IterateOverReachableObjects(this, heap_root_callback, stack_ref_callback, object_ref_callback, user_data);
jpayne@69 2063 }
jpayne@69 2064
jpayne@69 2065 jvmtiError IterateOverHeap(jvmtiHeapObjectFilter object_filter,
jpayne@69 2066 jvmtiHeapObjectCallback heap_object_callback,
jpayne@69 2067 const void* user_data) {
jpayne@69 2068 return functions->IterateOverHeap(this, object_filter, heap_object_callback, user_data);
jpayne@69 2069 }
jpayne@69 2070
jpayne@69 2071 jvmtiError IterateOverInstancesOfClass(jclass klass,
jpayne@69 2072 jvmtiHeapObjectFilter object_filter,
jpayne@69 2073 jvmtiHeapObjectCallback heap_object_callback,
jpayne@69 2074 const void* user_data) {
jpayne@69 2075 return functions->IterateOverInstancesOfClass(this, klass, object_filter, heap_object_callback, user_data);
jpayne@69 2076 }
jpayne@69 2077
jpayne@69 2078 jvmtiError GetLocalObject(jthread thread,
jpayne@69 2079 jint depth,
jpayne@69 2080 jint slot,
jpayne@69 2081 jobject* value_ptr) {
jpayne@69 2082 return functions->GetLocalObject(this, thread, depth, slot, value_ptr);
jpayne@69 2083 }
jpayne@69 2084
jpayne@69 2085 jvmtiError GetLocalInstance(jthread thread,
jpayne@69 2086 jint depth,
jpayne@69 2087 jobject* value_ptr) {
jpayne@69 2088 return functions->GetLocalInstance(this, thread, depth, value_ptr);
jpayne@69 2089 }
jpayne@69 2090
jpayne@69 2091 jvmtiError GetLocalInt(jthread thread,
jpayne@69 2092 jint depth,
jpayne@69 2093 jint slot,
jpayne@69 2094 jint* value_ptr) {
jpayne@69 2095 return functions->GetLocalInt(this, thread, depth, slot, value_ptr);
jpayne@69 2096 }
jpayne@69 2097
jpayne@69 2098 jvmtiError GetLocalLong(jthread thread,
jpayne@69 2099 jint depth,
jpayne@69 2100 jint slot,
jpayne@69 2101 jlong* value_ptr) {
jpayne@69 2102 return functions->GetLocalLong(this, thread, depth, slot, value_ptr);
jpayne@69 2103 }
jpayne@69 2104
jpayne@69 2105 jvmtiError GetLocalFloat(jthread thread,
jpayne@69 2106 jint depth,
jpayne@69 2107 jint slot,
jpayne@69 2108 jfloat* value_ptr) {
jpayne@69 2109 return functions->GetLocalFloat(this, thread, depth, slot, value_ptr);
jpayne@69 2110 }
jpayne@69 2111
jpayne@69 2112 jvmtiError GetLocalDouble(jthread thread,
jpayne@69 2113 jint depth,
jpayne@69 2114 jint slot,
jpayne@69 2115 jdouble* value_ptr) {
jpayne@69 2116 return functions->GetLocalDouble(this, thread, depth, slot, value_ptr);
jpayne@69 2117 }
jpayne@69 2118
jpayne@69 2119 jvmtiError SetLocalObject(jthread thread,
jpayne@69 2120 jint depth,
jpayne@69 2121 jint slot,
jpayne@69 2122 jobject value) {
jpayne@69 2123 return functions->SetLocalObject(this, thread, depth, slot, value);
jpayne@69 2124 }
jpayne@69 2125
jpayne@69 2126 jvmtiError SetLocalInt(jthread thread,
jpayne@69 2127 jint depth,
jpayne@69 2128 jint slot,
jpayne@69 2129 jint value) {
jpayne@69 2130 return functions->SetLocalInt(this, thread, depth, slot, value);
jpayne@69 2131 }
jpayne@69 2132
jpayne@69 2133 jvmtiError SetLocalLong(jthread thread,
jpayne@69 2134 jint depth,
jpayne@69 2135 jint slot,
jpayne@69 2136 jlong value) {
jpayne@69 2137 return functions->SetLocalLong(this, thread, depth, slot, value);
jpayne@69 2138 }
jpayne@69 2139
jpayne@69 2140 jvmtiError SetLocalFloat(jthread thread,
jpayne@69 2141 jint depth,
jpayne@69 2142 jint slot,
jpayne@69 2143 jfloat value) {
jpayne@69 2144 return functions->SetLocalFloat(this, thread, depth, slot, value);
jpayne@69 2145 }
jpayne@69 2146
jpayne@69 2147 jvmtiError SetLocalDouble(jthread thread,
jpayne@69 2148 jint depth,
jpayne@69 2149 jint slot,
jpayne@69 2150 jdouble value) {
jpayne@69 2151 return functions->SetLocalDouble(this, thread, depth, slot, value);
jpayne@69 2152 }
jpayne@69 2153
jpayne@69 2154 jvmtiError SetBreakpoint(jmethodID method,
jpayne@69 2155 jlocation location) {
jpayne@69 2156 return functions->SetBreakpoint(this, method, location);
jpayne@69 2157 }
jpayne@69 2158
jpayne@69 2159 jvmtiError ClearBreakpoint(jmethodID method,
jpayne@69 2160 jlocation location) {
jpayne@69 2161 return functions->ClearBreakpoint(this, method, location);
jpayne@69 2162 }
jpayne@69 2163
jpayne@69 2164 jvmtiError SetFieldAccessWatch(jclass klass,
jpayne@69 2165 jfieldID field) {
jpayne@69 2166 return functions->SetFieldAccessWatch(this, klass, field);
jpayne@69 2167 }
jpayne@69 2168
jpayne@69 2169 jvmtiError ClearFieldAccessWatch(jclass klass,
jpayne@69 2170 jfieldID field) {
jpayne@69 2171 return functions->ClearFieldAccessWatch(this, klass, field);
jpayne@69 2172 }
jpayne@69 2173
jpayne@69 2174 jvmtiError SetFieldModificationWatch(jclass klass,
jpayne@69 2175 jfieldID field) {
jpayne@69 2176 return functions->SetFieldModificationWatch(this, klass, field);
jpayne@69 2177 }
jpayne@69 2178
jpayne@69 2179 jvmtiError ClearFieldModificationWatch(jclass klass,
jpayne@69 2180 jfieldID field) {
jpayne@69 2181 return functions->ClearFieldModificationWatch(this, klass, field);
jpayne@69 2182 }
jpayne@69 2183
jpayne@69 2184 jvmtiError GetAllModules(jint* module_count_ptr,
jpayne@69 2185 jobject** modules_ptr) {
jpayne@69 2186 return functions->GetAllModules(this, module_count_ptr, modules_ptr);
jpayne@69 2187 }
jpayne@69 2188
jpayne@69 2189 jvmtiError GetNamedModule(jobject class_loader,
jpayne@69 2190 const char* package_name,
jpayne@69 2191 jobject* module_ptr) {
jpayne@69 2192 return functions->GetNamedModule(this, class_loader, package_name, module_ptr);
jpayne@69 2193 }
jpayne@69 2194
jpayne@69 2195 jvmtiError AddModuleReads(jobject module,
jpayne@69 2196 jobject to_module) {
jpayne@69 2197 return functions->AddModuleReads(this, module, to_module);
jpayne@69 2198 }
jpayne@69 2199
jpayne@69 2200 jvmtiError AddModuleExports(jobject module,
jpayne@69 2201 const char* pkg_name,
jpayne@69 2202 jobject to_module) {
jpayne@69 2203 return functions->AddModuleExports(this, module, pkg_name, to_module);
jpayne@69 2204 }
jpayne@69 2205
jpayne@69 2206 jvmtiError AddModuleOpens(jobject module,
jpayne@69 2207 const char* pkg_name,
jpayne@69 2208 jobject to_module) {
jpayne@69 2209 return functions->AddModuleOpens(this, module, pkg_name, to_module);
jpayne@69 2210 }
jpayne@69 2211
jpayne@69 2212 jvmtiError AddModuleUses(jobject module,
jpayne@69 2213 jclass service) {
jpayne@69 2214 return functions->AddModuleUses(this, module, service);
jpayne@69 2215 }
jpayne@69 2216
jpayne@69 2217 jvmtiError AddModuleProvides(jobject module,
jpayne@69 2218 jclass service,
jpayne@69 2219 jclass impl_class) {
jpayne@69 2220 return functions->AddModuleProvides(this, module, service, impl_class);
jpayne@69 2221 }
jpayne@69 2222
jpayne@69 2223 jvmtiError IsModifiableModule(jobject module,
jpayne@69 2224 jboolean* is_modifiable_module_ptr) {
jpayne@69 2225 return functions->IsModifiableModule(this, module, is_modifiable_module_ptr);
jpayne@69 2226 }
jpayne@69 2227
jpayne@69 2228 jvmtiError GetLoadedClasses(jint* class_count_ptr,
jpayne@69 2229 jclass** classes_ptr) {
jpayne@69 2230 return functions->GetLoadedClasses(this, class_count_ptr, classes_ptr);
jpayne@69 2231 }
jpayne@69 2232
jpayne@69 2233 jvmtiError GetClassLoaderClasses(jobject initiating_loader,
jpayne@69 2234 jint* class_count_ptr,
jpayne@69 2235 jclass** classes_ptr) {
jpayne@69 2236 return functions->GetClassLoaderClasses(this, initiating_loader, class_count_ptr, classes_ptr);
jpayne@69 2237 }
jpayne@69 2238
jpayne@69 2239 jvmtiError GetClassSignature(jclass klass,
jpayne@69 2240 char** signature_ptr,
jpayne@69 2241 char** generic_ptr) {
jpayne@69 2242 return functions->GetClassSignature(this, klass, signature_ptr, generic_ptr);
jpayne@69 2243 }
jpayne@69 2244
jpayne@69 2245 jvmtiError GetClassStatus(jclass klass,
jpayne@69 2246 jint* status_ptr) {
jpayne@69 2247 return functions->GetClassStatus(this, klass, status_ptr);
jpayne@69 2248 }
jpayne@69 2249
jpayne@69 2250 jvmtiError GetSourceFileName(jclass klass,
jpayne@69 2251 char** source_name_ptr) {
jpayne@69 2252 return functions->GetSourceFileName(this, klass, source_name_ptr);
jpayne@69 2253 }
jpayne@69 2254
jpayne@69 2255 jvmtiError GetClassModifiers(jclass klass,
jpayne@69 2256 jint* modifiers_ptr) {
jpayne@69 2257 return functions->GetClassModifiers(this, klass, modifiers_ptr);
jpayne@69 2258 }
jpayne@69 2259
jpayne@69 2260 jvmtiError GetClassMethods(jclass klass,
jpayne@69 2261 jint* method_count_ptr,
jpayne@69 2262 jmethodID** methods_ptr) {
jpayne@69 2263 return functions->GetClassMethods(this, klass, method_count_ptr, methods_ptr);
jpayne@69 2264 }
jpayne@69 2265
jpayne@69 2266 jvmtiError GetClassFields(jclass klass,
jpayne@69 2267 jint* field_count_ptr,
jpayne@69 2268 jfieldID** fields_ptr) {
jpayne@69 2269 return functions->GetClassFields(this, klass, field_count_ptr, fields_ptr);
jpayne@69 2270 }
jpayne@69 2271
jpayne@69 2272 jvmtiError GetImplementedInterfaces(jclass klass,
jpayne@69 2273 jint* interface_count_ptr,
jpayne@69 2274 jclass** interfaces_ptr) {
jpayne@69 2275 return functions->GetImplementedInterfaces(this, klass, interface_count_ptr, interfaces_ptr);
jpayne@69 2276 }
jpayne@69 2277
jpayne@69 2278 jvmtiError GetClassVersionNumbers(jclass klass,
jpayne@69 2279 jint* minor_version_ptr,
jpayne@69 2280 jint* major_version_ptr) {
jpayne@69 2281 return functions->GetClassVersionNumbers(this, klass, minor_version_ptr, major_version_ptr);
jpayne@69 2282 }
jpayne@69 2283
jpayne@69 2284 jvmtiError GetConstantPool(jclass klass,
jpayne@69 2285 jint* constant_pool_count_ptr,
jpayne@69 2286 jint* constant_pool_byte_count_ptr,
jpayne@69 2287 unsigned char** constant_pool_bytes_ptr) {
jpayne@69 2288 return functions->GetConstantPool(this, klass, constant_pool_count_ptr, constant_pool_byte_count_ptr, constant_pool_bytes_ptr);
jpayne@69 2289 }
jpayne@69 2290
jpayne@69 2291 jvmtiError IsInterface(jclass klass,
jpayne@69 2292 jboolean* is_interface_ptr) {
jpayne@69 2293 return functions->IsInterface(this, klass, is_interface_ptr);
jpayne@69 2294 }
jpayne@69 2295
jpayne@69 2296 jvmtiError IsArrayClass(jclass klass,
jpayne@69 2297 jboolean* is_array_class_ptr) {
jpayne@69 2298 return functions->IsArrayClass(this, klass, is_array_class_ptr);
jpayne@69 2299 }
jpayne@69 2300
jpayne@69 2301 jvmtiError IsModifiableClass(jclass klass,
jpayne@69 2302 jboolean* is_modifiable_class_ptr) {
jpayne@69 2303 return functions->IsModifiableClass(this, klass, is_modifiable_class_ptr);
jpayne@69 2304 }
jpayne@69 2305
jpayne@69 2306 jvmtiError GetClassLoader(jclass klass,
jpayne@69 2307 jobject* classloader_ptr) {
jpayne@69 2308 return functions->GetClassLoader(this, klass, classloader_ptr);
jpayne@69 2309 }
jpayne@69 2310
jpayne@69 2311 jvmtiError GetSourceDebugExtension(jclass klass,
jpayne@69 2312 char** source_debug_extension_ptr) {
jpayne@69 2313 return functions->GetSourceDebugExtension(this, klass, source_debug_extension_ptr);
jpayne@69 2314 }
jpayne@69 2315
jpayne@69 2316 jvmtiError RetransformClasses(jint class_count,
jpayne@69 2317 const jclass* classes) {
jpayne@69 2318 return functions->RetransformClasses(this, class_count, classes);
jpayne@69 2319 }
jpayne@69 2320
jpayne@69 2321 jvmtiError RedefineClasses(jint class_count,
jpayne@69 2322 const jvmtiClassDefinition* class_definitions) {
jpayne@69 2323 return functions->RedefineClasses(this, class_count, class_definitions);
jpayne@69 2324 }
jpayne@69 2325
jpayne@69 2326 jvmtiError GetObjectSize(jobject object,
jpayne@69 2327 jlong* size_ptr) {
jpayne@69 2328 return functions->GetObjectSize(this, object, size_ptr);
jpayne@69 2329 }
jpayne@69 2330
jpayne@69 2331 jvmtiError GetObjectHashCode(jobject object,
jpayne@69 2332 jint* hash_code_ptr) {
jpayne@69 2333 return functions->GetObjectHashCode(this, object, hash_code_ptr);
jpayne@69 2334 }
jpayne@69 2335
jpayne@69 2336 jvmtiError GetObjectMonitorUsage(jobject object,
jpayne@69 2337 jvmtiMonitorUsage* info_ptr) {
jpayne@69 2338 return functions->GetObjectMonitorUsage(this, object, info_ptr);
jpayne@69 2339 }
jpayne@69 2340
jpayne@69 2341 jvmtiError GetFieldName(jclass klass,
jpayne@69 2342 jfieldID field,
jpayne@69 2343 char** name_ptr,
jpayne@69 2344 char** signature_ptr,
jpayne@69 2345 char** generic_ptr) {
jpayne@69 2346 return functions->GetFieldName(this, klass, field, name_ptr, signature_ptr, generic_ptr);
jpayne@69 2347 }
jpayne@69 2348
jpayne@69 2349 jvmtiError GetFieldDeclaringClass(jclass klass,
jpayne@69 2350 jfieldID field,
jpayne@69 2351 jclass* declaring_class_ptr) {
jpayne@69 2352 return functions->GetFieldDeclaringClass(this, klass, field, declaring_class_ptr);
jpayne@69 2353 }
jpayne@69 2354
jpayne@69 2355 jvmtiError GetFieldModifiers(jclass klass,
jpayne@69 2356 jfieldID field,
jpayne@69 2357 jint* modifiers_ptr) {
jpayne@69 2358 return functions->GetFieldModifiers(this, klass, field, modifiers_ptr);
jpayne@69 2359 }
jpayne@69 2360
jpayne@69 2361 jvmtiError IsFieldSynthetic(jclass klass,
jpayne@69 2362 jfieldID field,
jpayne@69 2363 jboolean* is_synthetic_ptr) {
jpayne@69 2364 return functions->IsFieldSynthetic(this, klass, field, is_synthetic_ptr);
jpayne@69 2365 }
jpayne@69 2366
jpayne@69 2367 jvmtiError GetMethodName(jmethodID method,
jpayne@69 2368 char** name_ptr,
jpayne@69 2369 char** signature_ptr,
jpayne@69 2370 char** generic_ptr) {
jpayne@69 2371 return functions->GetMethodName(this, method, name_ptr, signature_ptr, generic_ptr);
jpayne@69 2372 }
jpayne@69 2373
jpayne@69 2374 jvmtiError GetMethodDeclaringClass(jmethodID method,
jpayne@69 2375 jclass* declaring_class_ptr) {
jpayne@69 2376 return functions->GetMethodDeclaringClass(this, method, declaring_class_ptr);
jpayne@69 2377 }
jpayne@69 2378
jpayne@69 2379 jvmtiError GetMethodModifiers(jmethodID method,
jpayne@69 2380 jint* modifiers_ptr) {
jpayne@69 2381 return functions->GetMethodModifiers(this, method, modifiers_ptr);
jpayne@69 2382 }
jpayne@69 2383
jpayne@69 2384 jvmtiError GetMaxLocals(jmethodID method,
jpayne@69 2385 jint* max_ptr) {
jpayne@69 2386 return functions->GetMaxLocals(this, method, max_ptr);
jpayne@69 2387 }
jpayne@69 2388
jpayne@69 2389 jvmtiError GetArgumentsSize(jmethodID method,
jpayne@69 2390 jint* size_ptr) {
jpayne@69 2391 return functions->GetArgumentsSize(this, method, size_ptr);
jpayne@69 2392 }
jpayne@69 2393
jpayne@69 2394 jvmtiError GetLineNumberTable(jmethodID method,
jpayne@69 2395 jint* entry_count_ptr,
jpayne@69 2396 jvmtiLineNumberEntry** table_ptr) {
jpayne@69 2397 return functions->GetLineNumberTable(this, method, entry_count_ptr, table_ptr);
jpayne@69 2398 }
jpayne@69 2399
jpayne@69 2400 jvmtiError GetMethodLocation(jmethodID method,
jpayne@69 2401 jlocation* start_location_ptr,
jpayne@69 2402 jlocation* end_location_ptr) {
jpayne@69 2403 return functions->GetMethodLocation(this, method, start_location_ptr, end_location_ptr);
jpayne@69 2404 }
jpayne@69 2405
jpayne@69 2406 jvmtiError GetLocalVariableTable(jmethodID method,
jpayne@69 2407 jint* entry_count_ptr,
jpayne@69 2408 jvmtiLocalVariableEntry** table_ptr) {
jpayne@69 2409 return functions->GetLocalVariableTable(this, method, entry_count_ptr, table_ptr);
jpayne@69 2410 }
jpayne@69 2411
jpayne@69 2412 jvmtiError GetBytecodes(jmethodID method,
jpayne@69 2413 jint* bytecode_count_ptr,
jpayne@69 2414 unsigned char** bytecodes_ptr) {
jpayne@69 2415 return functions->GetBytecodes(this, method, bytecode_count_ptr, bytecodes_ptr);
jpayne@69 2416 }
jpayne@69 2417
jpayne@69 2418 jvmtiError IsMethodNative(jmethodID method,
jpayne@69 2419 jboolean* is_native_ptr) {
jpayne@69 2420 return functions->IsMethodNative(this, method, is_native_ptr);
jpayne@69 2421 }
jpayne@69 2422
jpayne@69 2423 jvmtiError IsMethodSynthetic(jmethodID method,
jpayne@69 2424 jboolean* is_synthetic_ptr) {
jpayne@69 2425 return functions->IsMethodSynthetic(this, method, is_synthetic_ptr);
jpayne@69 2426 }
jpayne@69 2427
jpayne@69 2428 jvmtiError IsMethodObsolete(jmethodID method,
jpayne@69 2429 jboolean* is_obsolete_ptr) {
jpayne@69 2430 return functions->IsMethodObsolete(this, method, is_obsolete_ptr);
jpayne@69 2431 }
jpayne@69 2432
jpayne@69 2433 jvmtiError SetNativeMethodPrefix(const char* prefix) {
jpayne@69 2434 return functions->SetNativeMethodPrefix(this, prefix);
jpayne@69 2435 }
jpayne@69 2436
jpayne@69 2437 jvmtiError SetNativeMethodPrefixes(jint prefix_count,
jpayne@69 2438 char** prefixes) {
jpayne@69 2439 return functions->SetNativeMethodPrefixes(this, prefix_count, prefixes);
jpayne@69 2440 }
jpayne@69 2441
jpayne@69 2442 jvmtiError CreateRawMonitor(const char* name,
jpayne@69 2443 jrawMonitorID* monitor_ptr) {
jpayne@69 2444 return functions->CreateRawMonitor(this, name, monitor_ptr);
jpayne@69 2445 }
jpayne@69 2446
jpayne@69 2447 jvmtiError DestroyRawMonitor(jrawMonitorID monitor) {
jpayne@69 2448 return functions->DestroyRawMonitor(this, monitor);
jpayne@69 2449 }
jpayne@69 2450
jpayne@69 2451 jvmtiError RawMonitorEnter(jrawMonitorID monitor) {
jpayne@69 2452 return functions->RawMonitorEnter(this, monitor);
jpayne@69 2453 }
jpayne@69 2454
jpayne@69 2455 jvmtiError RawMonitorExit(jrawMonitorID monitor) {
jpayne@69 2456 return functions->RawMonitorExit(this, monitor);
jpayne@69 2457 }
jpayne@69 2458
jpayne@69 2459 jvmtiError RawMonitorWait(jrawMonitorID monitor,
jpayne@69 2460 jlong millis) {
jpayne@69 2461 return functions->RawMonitorWait(this, monitor, millis);
jpayne@69 2462 }
jpayne@69 2463
jpayne@69 2464 jvmtiError RawMonitorNotify(jrawMonitorID monitor) {
jpayne@69 2465 return functions->RawMonitorNotify(this, monitor);
jpayne@69 2466 }
jpayne@69 2467
jpayne@69 2468 jvmtiError RawMonitorNotifyAll(jrawMonitorID monitor) {
jpayne@69 2469 return functions->RawMonitorNotifyAll(this, monitor);
jpayne@69 2470 }
jpayne@69 2471
jpayne@69 2472 jvmtiError SetJNIFunctionTable(const jniNativeInterface* function_table) {
jpayne@69 2473 return functions->SetJNIFunctionTable(this, function_table);
jpayne@69 2474 }
jpayne@69 2475
jpayne@69 2476 jvmtiError GetJNIFunctionTable(jniNativeInterface** function_table) {
jpayne@69 2477 return functions->GetJNIFunctionTable(this, function_table);
jpayne@69 2478 }
jpayne@69 2479
jpayne@69 2480 jvmtiError SetEventCallbacks(const jvmtiEventCallbacks* callbacks,
jpayne@69 2481 jint size_of_callbacks) {
jpayne@69 2482 return functions->SetEventCallbacks(this, callbacks, size_of_callbacks);
jpayne@69 2483 }
jpayne@69 2484
jpayne@69 2485 jvmtiError SetEventNotificationMode(jvmtiEventMode mode,
jpayne@69 2486 jvmtiEvent event_type,
jpayne@69 2487 jthread event_thread,
jpayne@69 2488 ...) {
jpayne@69 2489 return functions->SetEventNotificationMode(this, mode, event_type, event_thread);
jpayne@69 2490 }
jpayne@69 2491
jpayne@69 2492 jvmtiError GenerateEvents(jvmtiEvent event_type) {
jpayne@69 2493 return functions->GenerateEvents(this, event_type);
jpayne@69 2494 }
jpayne@69 2495
jpayne@69 2496 jvmtiError GetExtensionFunctions(jint* extension_count_ptr,
jpayne@69 2497 jvmtiExtensionFunctionInfo** extensions) {
jpayne@69 2498 return functions->GetExtensionFunctions(this, extension_count_ptr, extensions);
jpayne@69 2499 }
jpayne@69 2500
jpayne@69 2501 jvmtiError GetExtensionEvents(jint* extension_count_ptr,
jpayne@69 2502 jvmtiExtensionEventInfo** extensions) {
jpayne@69 2503 return functions->GetExtensionEvents(this, extension_count_ptr, extensions);
jpayne@69 2504 }
jpayne@69 2505
jpayne@69 2506 jvmtiError SetExtensionEventCallback(jint extension_event_index,
jpayne@69 2507 jvmtiExtensionEvent callback) {
jpayne@69 2508 return functions->SetExtensionEventCallback(this, extension_event_index, callback);
jpayne@69 2509 }
jpayne@69 2510
jpayne@69 2511 jvmtiError GetPotentialCapabilities(jvmtiCapabilities* capabilities_ptr) {
jpayne@69 2512 return functions->GetPotentialCapabilities(this, capabilities_ptr);
jpayne@69 2513 }
jpayne@69 2514
jpayne@69 2515 jvmtiError AddCapabilities(const jvmtiCapabilities* capabilities_ptr) {
jpayne@69 2516 return functions->AddCapabilities(this, capabilities_ptr);
jpayne@69 2517 }
jpayne@69 2518
jpayne@69 2519 jvmtiError RelinquishCapabilities(const jvmtiCapabilities* capabilities_ptr) {
jpayne@69 2520 return functions->RelinquishCapabilities(this, capabilities_ptr);
jpayne@69 2521 }
jpayne@69 2522
jpayne@69 2523 jvmtiError GetCapabilities(jvmtiCapabilities* capabilities_ptr) {
jpayne@69 2524 return functions->GetCapabilities(this, capabilities_ptr);
jpayne@69 2525 }
jpayne@69 2526
jpayne@69 2527 jvmtiError GetCurrentThreadCpuTimerInfo(jvmtiTimerInfo* info_ptr) {
jpayne@69 2528 return functions->GetCurrentThreadCpuTimerInfo(this, info_ptr);
jpayne@69 2529 }
jpayne@69 2530
jpayne@69 2531 jvmtiError GetCurrentThreadCpuTime(jlong* nanos_ptr) {
jpayne@69 2532 return functions->GetCurrentThreadCpuTime(this, nanos_ptr);
jpayne@69 2533 }
jpayne@69 2534
jpayne@69 2535 jvmtiError GetThreadCpuTimerInfo(jvmtiTimerInfo* info_ptr) {
jpayne@69 2536 return functions->GetThreadCpuTimerInfo(this, info_ptr);
jpayne@69 2537 }
jpayne@69 2538
jpayne@69 2539 jvmtiError GetThreadCpuTime(jthread thread,
jpayne@69 2540 jlong* nanos_ptr) {
jpayne@69 2541 return functions->GetThreadCpuTime(this, thread, nanos_ptr);
jpayne@69 2542 }
jpayne@69 2543
jpayne@69 2544 jvmtiError GetTimerInfo(jvmtiTimerInfo* info_ptr) {
jpayne@69 2545 return functions->GetTimerInfo(this, info_ptr);
jpayne@69 2546 }
jpayne@69 2547
jpayne@69 2548 jvmtiError GetTime(jlong* nanos_ptr) {
jpayne@69 2549 return functions->GetTime(this, nanos_ptr);
jpayne@69 2550 }
jpayne@69 2551
jpayne@69 2552 jvmtiError GetAvailableProcessors(jint* processor_count_ptr) {
jpayne@69 2553 return functions->GetAvailableProcessors(this, processor_count_ptr);
jpayne@69 2554 }
jpayne@69 2555
jpayne@69 2556 jvmtiError AddToBootstrapClassLoaderSearch(const char* segment) {
jpayne@69 2557 return functions->AddToBootstrapClassLoaderSearch(this, segment);
jpayne@69 2558 }
jpayne@69 2559
jpayne@69 2560 jvmtiError AddToSystemClassLoaderSearch(const char* segment) {
jpayne@69 2561 return functions->AddToSystemClassLoaderSearch(this, segment);
jpayne@69 2562 }
jpayne@69 2563
jpayne@69 2564 jvmtiError GetSystemProperties(jint* count_ptr,
jpayne@69 2565 char*** property_ptr) {
jpayne@69 2566 return functions->GetSystemProperties(this, count_ptr, property_ptr);
jpayne@69 2567 }
jpayne@69 2568
jpayne@69 2569 jvmtiError GetSystemProperty(const char* property,
jpayne@69 2570 char** value_ptr) {
jpayne@69 2571 return functions->GetSystemProperty(this, property, value_ptr);
jpayne@69 2572 }
jpayne@69 2573
jpayne@69 2574 jvmtiError SetSystemProperty(const char* property,
jpayne@69 2575 const char* value_ptr) {
jpayne@69 2576 return functions->SetSystemProperty(this, property, value_ptr);
jpayne@69 2577 }
jpayne@69 2578
jpayne@69 2579 jvmtiError GetPhase(jvmtiPhase* phase_ptr) {
jpayne@69 2580 return functions->GetPhase(this, phase_ptr);
jpayne@69 2581 }
jpayne@69 2582
jpayne@69 2583 jvmtiError DisposeEnvironment() {
jpayne@69 2584 return functions->DisposeEnvironment(this);
jpayne@69 2585 }
jpayne@69 2586
jpayne@69 2587 jvmtiError SetEnvironmentLocalStorage(const void* data) {
jpayne@69 2588 return functions->SetEnvironmentLocalStorage(this, data);
jpayne@69 2589 }
jpayne@69 2590
jpayne@69 2591 jvmtiError GetEnvironmentLocalStorage(void** data_ptr) {
jpayne@69 2592 return functions->GetEnvironmentLocalStorage(this, data_ptr);
jpayne@69 2593 }
jpayne@69 2594
jpayne@69 2595 jvmtiError GetVersionNumber(jint* version_ptr) {
jpayne@69 2596 return functions->GetVersionNumber(this, version_ptr);
jpayne@69 2597 }
jpayne@69 2598
jpayne@69 2599 jvmtiError GetErrorName(jvmtiError error,
jpayne@69 2600 char** name_ptr) {
jpayne@69 2601 return functions->GetErrorName(this, error, name_ptr);
jpayne@69 2602 }
jpayne@69 2603
jpayne@69 2604 jvmtiError SetVerboseFlag(jvmtiVerboseFlag flag,
jpayne@69 2605 jboolean value) {
jpayne@69 2606 return functions->SetVerboseFlag(this, flag, value);
jpayne@69 2607 }
jpayne@69 2608
jpayne@69 2609 jvmtiError GetJLocationFormat(jvmtiJlocationFormat* format_ptr) {
jpayne@69 2610 return functions->GetJLocationFormat(this, format_ptr);
jpayne@69 2611 }
jpayne@69 2612
jpayne@69 2613 jvmtiError SetHeapSamplingInterval(jint sampling_interval) {
jpayne@69 2614 return functions->SetHeapSamplingInterval(this, sampling_interval);
jpayne@69 2615 }
jpayne@69 2616
jpayne@69 2617 #endif /* __cplusplus */
jpayne@69 2618 };
jpayne@69 2619
jpayne@69 2620
jpayne@69 2621 #ifdef __cplusplus
jpayne@69 2622 } /* extern "C" */
jpayne@69 2623 #endif /* __cplusplus */
jpayne@69 2624
jpayne@69 2625 #endif /* !_JAVA_JVMTI_H_ */