Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/hotspot/share/jvmci/jvmciEnv.hpp
40949 views
1
/*
2
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*
23
*/
24
25
#ifndef SHARE_JVMCI_JVMCIENV_HPP
26
#define SHARE_JVMCI_JVMCIENV_HPP
27
28
#include "classfile/javaClasses.hpp"
29
#include "jvmci/jvmciJavaClasses.hpp"
30
#include "runtime/jniHandles.hpp"
31
#include "runtime/thread.hpp"
32
33
class CompileTask;
34
class JVMCIObject;
35
class JVMCIObjectArray;
36
class JVMCIPrimitiveArray;
37
class JVMCICompiler;
38
class JVMCIRuntime;
39
class nmethodLocker;
40
41
#define JVMCI_EXCEPTION_CONTEXT \
42
JavaThread* thread = JavaThread::current(); \
43
JavaThread* THREAD = thread; // For exception macros.
44
45
// Helper to log more context on a JNI exception
46
#define JVMCI_EXCEPTION_CHECK(env, ...) \
47
do { \
48
if (env->ExceptionCheck()) { \
49
if (env != JavaThread::current()->jni_environment()) { \
50
char* sl_path; \
51
if (::JVMCI::get_shared_library(sl_path, false) != NULL) { \
52
tty->print_cr("In JVMCI shared library (%s):", sl_path); \
53
} \
54
} \
55
tty->print_cr(__VA_ARGS__); \
56
return; \
57
} \
58
} while(0)
59
60
// Helper class to ensure that references to Klass* are kept alive for G1
61
class JVMCIKlassHandle : public StackObj {
62
private:
63
Klass* _klass;
64
Handle _holder;
65
Thread* _thread;
66
67
Klass* klass() const { return _klass; }
68
Klass* non_null_klass() const { assert(_klass != NULL, "resolving NULL _klass"); return _klass; }
69
70
public:
71
/* Constructors */
72
JVMCIKlassHandle (Thread* thread) : _klass(NULL), _thread(thread) {}
73
JVMCIKlassHandle (Thread* thread, Klass* klass);
74
75
JVMCIKlassHandle (const JVMCIKlassHandle &h): _klass(h._klass), _holder(h._holder), _thread(h._thread) {}
76
JVMCIKlassHandle& operator=(const JVMCIKlassHandle &s);
77
JVMCIKlassHandle& operator=(Klass* klass);
78
79
/* Operators for ease of use */
80
Klass* operator () () const { return klass(); }
81
Klass* operator -> () const { return non_null_klass(); }
82
83
bool operator == (Klass* o) const { return klass() == o; }
84
bool operator == (const JVMCIKlassHandle& h) const { return klass() == h.klass(); }
85
86
/* Null checks */
87
bool is_null() const { return _klass == NULL; }
88
bool not_null() const { return _klass != NULL; }
89
};
90
91
// A class that maintains the state needed for compilations requested
92
// by the CompileBroker. It is created in the broker and passed through
93
// into the code installation step.
94
class JVMCICompileState : public ResourceObj {
95
friend class JVMCIVMStructs;
96
private:
97
CompileTask* _task;
98
JVMCICompiler* _compiler;
99
100
// Cache JVMTI state. Defined as bytes so that reading them from Java
101
// via Unsafe is well defined (the C++ type for bool is implementation
102
// defined and may not be the same as a Java boolean).
103
uint64_t _jvmti_redefinition_count;
104
jbyte _jvmti_can_hotswap_or_post_breakpoint;
105
jbyte _jvmti_can_access_local_variables;
106
jbyte _jvmti_can_post_on_exceptions;
107
jbyte _jvmti_can_pop_frame;
108
bool _target_method_is_old;
109
110
// Compilation result values.
111
bool _retryable;
112
const char* _failure_reason;
113
114
// Specifies if _failure_reason is on the C heap. If so, it is allocated
115
// with the mtJVMCI NMT flag.
116
bool _failure_reason_on_C_heap;
117
118
// A value indicating compilation activity during the compilation.
119
// If successive calls to this method return a different value, then
120
// some degree of JVMCI compilation occurred between the calls.
121
jint _compilation_ticks;
122
123
public:
124
JVMCICompileState(CompileTask* task, JVMCICompiler* compiler);
125
126
CompileTask* task() { return _task; }
127
128
bool jvmti_state_changed() const;
129
uint64_t jvmti_redefinition_count() const { return _jvmti_redefinition_count; }
130
bool jvmti_can_hotswap_or_post_breakpoint() const { return _jvmti_can_hotswap_or_post_breakpoint != 0; }
131
bool jvmti_can_access_local_variables() const { return _jvmti_can_access_local_variables != 0; }
132
bool jvmti_can_post_on_exceptions() const { return _jvmti_can_post_on_exceptions != 0; }
133
bool jvmti_can_pop_frame() const { return _jvmti_can_pop_frame != 0; }
134
bool target_method_is_old() const { return _target_method_is_old; }
135
136
const char* failure_reason() { return _failure_reason; }
137
bool failure_reason_on_C_heap() { return _failure_reason_on_C_heap; }
138
bool retryable() { return _retryable; }
139
140
void set_failure(bool retryable, const char* reason, bool reason_on_C_heap = false) {
141
_failure_reason = reason;
142
_failure_reason_on_C_heap = reason_on_C_heap;
143
_retryable = retryable;
144
}
145
146
jint compilation_ticks() const { return _compilation_ticks; }
147
void inc_compilation_ticks();
148
};
149
150
151
// This class is a top level wrapper around interactions between HotSpot
152
// and the JVMCI Java code. It supports both a HotSpot heap based
153
// runtime with HotSpot oop based accessors as well as a shared library
154
// based runtime that is accessed through JNI. It abstracts away all
155
// interactions with JVMCI objects so that a single version of the
156
// HotSpot C++ code can can work with either runtime.
157
class JVMCIEnv : public ResourceObj {
158
friend class JNIAccessMark;
159
160
// Initializes the _env, _mode and _runtime fields.
161
void init_env_mode_runtime(JavaThread* thread, JNIEnv* parent_env);
162
163
void init(JavaThread* thread, bool is_hotspot, const char* file, int line);
164
165
JNIEnv* _env; // JNI env for calling into shared library
166
bool _pop_frame_on_close; // Must pop frame on close?
167
bool _detach_on_close; // Must detach on close?
168
JVMCIRuntime* _runtime; // Access to a HotSpotJVMCIRuntime
169
bool _is_hotspot; // Which heap is the HotSpotJVMCIRuntime in
170
bool _throw_to_caller; // Propagate an exception raised in this env to the caller?
171
const char* _file; // The file and ...
172
int _line; // ... line where this JNIEnv was created
173
174
// Translates an exception on the HotSpot heap to an exception on
175
// the shared library heap. The translation includes the stack and
176
// causes of `throwable`. The translated exception is pending in the
177
// shared library thread upon returning.
178
void translate_hotspot_exception_to_jni_exception(JavaThread* THREAD, const Handle& throwable);
179
180
public:
181
// Opens a JVMCIEnv scope for a Java to VM call (e.g., via CompilerToVM).
182
// An exception occurring within the scope is left pending when the
183
// scope closes so that it will be propagated back to Java.
184
// The JVMCIEnv destructor translates the exception object for the
185
// Java runtime if necessary.
186
JVMCIEnv(JavaThread* thread, JNIEnv* env, const char* file, int line);
187
188
// Opens a JVMCIEnv scope for a compilation scheduled by the CompileBroker.
189
// An exception occurring within the scope must not be propagated back to
190
// the CompileBroker.
191
JVMCIEnv(JavaThread* thread, JVMCICompileState* compile_state, const char* file, int line);
192
193
// Opens a JNIEnv scope for a call from within the VM. An exception occurring
194
// within the scope must not be propagated back to the caller.
195
JVMCIEnv(JavaThread* env, const char* file, int line);
196
197
// Opens a JNIEnv scope for accessing `for_object`. An exception occurring
198
// within the scope must not be propagated back to the caller.
199
JVMCIEnv(JavaThread* thread, JVMCIObject for_object, const char* file, int line) {
200
// A JNI call to access an object in the shared library heap
201
// can block or take a long time so do not allow such access
202
// on the VM thread.
203
assert(for_object.is_hotspot() || !Thread::current()->is_VM_thread(),
204
"cannot open JVMCIEnv scope when in the VM thread for accessing a shared library heap object");
205
init(thread, for_object.is_hotspot(), file, line);
206
}
207
208
// Opens a JNIEnv scope for the HotSpot runtime if `is_hotspot` is true
209
// otherwise for the shared library runtime. An exception occurring
210
// within the scope must not be propagated back to the caller.
211
JVMCIEnv(JavaThread* thread, bool is_hotspot, const char* file, int line) {
212
init(thread, is_hotspot, file, line);
213
}
214
215
~JVMCIEnv();
216
217
JVMCIRuntime* runtime() {
218
return _runtime;
219
}
220
221
// Initializes Services.savedProperties in the shared library by copying
222
// the values from the same field in the HotSpot heap.
223
void copy_saved_properties();
224
225
jboolean has_pending_exception();
226
void clear_pending_exception();
227
228
// Prints an exception and stack trace of a pending exception.
229
void describe_pending_exception(bool clear);
230
231
int get_length(JVMCIArray array);
232
233
JVMCIObject get_object_at(JVMCIObjectArray array, int index);
234
void put_object_at(JVMCIObjectArray array, int index, JVMCIObject value);
235
236
jboolean get_bool_at(JVMCIPrimitiveArray array, int index);
237
void put_bool_at(JVMCIPrimitiveArray array, int index, jboolean value);
238
239
jbyte get_byte_at(JVMCIPrimitiveArray array, int index);
240
void put_byte_at(JVMCIPrimitiveArray array, int index, jbyte value);
241
242
jint get_int_at(JVMCIPrimitiveArray array, int index);
243
void put_int_at(JVMCIPrimitiveArray array, int index, jint value);
244
245
long get_long_at(JVMCIPrimitiveArray array, int index);
246
void put_long_at(JVMCIPrimitiveArray array, int index, jlong value);
247
248
void copy_bytes_to(JVMCIPrimitiveArray src, jbyte* dest, int offset, jsize length);
249
void copy_bytes_from(jbyte* src, JVMCIPrimitiveArray dest, int offset, jsize length);
250
251
void copy_longs_from(jlong* src, JVMCIPrimitiveArray dest, int offset, jsize length);
252
253
JVMCIObjectArray initialize_intrinsics(JVMCI_TRAPS);
254
255
jboolean is_boxing_object(BasicType type, JVMCIObject object);
256
257
// Get the primitive value from a Java boxing object. It's hard error to
258
// pass a non-primitive BasicType.
259
jvalue get_boxed_value(BasicType type, JVMCIObject object);
260
261
// Return the BasicType of the object if it's a boxing object, otherwise return T_ILLEGAL.
262
BasicType get_box_type(JVMCIObject object);
263
264
// Create a boxing object of the appropriate primitive type.
265
JVMCIObject create_box(BasicType type, jvalue* value, JVMCI_TRAPS);
266
267
const char* as_utf8_string(JVMCIObject str);
268
269
JVMCIObject create_string(Symbol* str, JVMCI_TRAPS) {
270
JVMCIObject s = create_string(str->as_C_string(), JVMCI_CHECK_(JVMCIObject()));
271
return s;
272
}
273
274
JVMCIObject create_string(const char* str, JVMCI_TRAPS);
275
276
bool equals(JVMCIObject a, JVMCIObject b);
277
278
// Convert into a JNI handle for the appropriate runtime
279
jobject get_jobject(JVMCIObject object) { assert(object.as_jobject() == NULL || is_hotspot() == object.is_hotspot(), "mismatch"); return object.as_jobject(); }
280
jarray get_jarray(JVMCIArray array) { assert(array.as_jobject() == NULL || is_hotspot() == array.is_hotspot(), "mismatch"); return array.as_jobject(); }
281
jobjectArray get_jobjectArray(JVMCIObjectArray objectArray) { assert(objectArray.as_jobject() == NULL || is_hotspot() == objectArray.is_hotspot(), "mismatch"); return objectArray.as_jobject(); }
282
jbyteArray get_jbyteArray(JVMCIPrimitiveArray primitiveArray) { assert(primitiveArray.as_jobject() == NULL || is_hotspot() == primitiveArray.is_hotspot(), "mismatch"); return primitiveArray.as_jbyteArray(); }
283
284
JVMCIObject wrap(jobject obj);
285
JVMCIObjectArray wrap(jobjectArray obj) { return (JVMCIObjectArray) wrap((jobject) obj); }
286
JVMCIPrimitiveArray wrap(jintArray obj) { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
287
JVMCIPrimitiveArray wrap(jbooleanArray obj) { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
288
JVMCIPrimitiveArray wrap(jbyteArray obj) { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
289
JVMCIPrimitiveArray wrap(jlongArray obj) { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
290
291
private:
292
JVMCIObject wrap(oop obj) { assert(is_hotspot(), "must be"); return wrap(JNIHandles::make_local(obj)); }
293
JVMCIObjectArray wrap(objArrayOop obj) { assert(is_hotspot(), "must be"); return (JVMCIObjectArray) wrap(JNIHandles::make_local(obj)); }
294
JVMCIPrimitiveArray wrap(typeArrayOop obj) { assert(is_hotspot(), "must be"); return (JVMCIPrimitiveArray) wrap(JNIHandles::make_local(obj)); }
295
296
public:
297
// Compiles a method with the JVMCI compiler.
298
// Caller must handle pending exception.
299
JVMCIObject call_HotSpotJVMCIRuntime_compileMethod(JVMCIObject runtime, JVMCIObject method, int entry_bci,
300
jlong compile_state, int id);
301
302
void call_HotSpotJVMCIRuntime_bootstrapFinished(JVMCIObject runtime, JVMCI_TRAPS);
303
void call_HotSpotJVMCIRuntime_shutdown(JVMCIObject runtime);
304
JVMCIObject call_HotSpotJVMCIRuntime_runtime(JVMCI_TRAPS);
305
JVMCIObject call_JVMCI_getRuntime(JVMCI_TRAPS);
306
JVMCIObject call_HotSpotJVMCIRuntime_getCompiler(JVMCIObject runtime, JVMCI_TRAPS);
307
308
JVMCIObject call_HotSpotJVMCIRuntime_callToString(JVMCIObject object, JVMCI_TRAPS);
309
310
JVMCIObject call_JavaConstant_forPrimitive(JVMCIObject kind, jlong value, JVMCI_TRAPS);
311
312
jboolean call_HotSpotJVMCIRuntime_isGCSupported(JVMCIObject runtime, jint gcIdentifier);
313
314
BasicType kindToBasicType(JVMCIObject kind, JVMCI_TRAPS);
315
316
#define DO_THROW(name) \
317
void throw_##name(const char* msg = NULL);
318
319
DO_THROW(InternalError)
320
DO_THROW(ArrayIndexOutOfBoundsException)
321
DO_THROW(IllegalStateException)
322
DO_THROW(NullPointerException)
323
DO_THROW(IllegalArgumentException)
324
DO_THROW(InvalidInstalledCodeException)
325
DO_THROW(UnsatisfiedLinkError)
326
DO_THROW(UnsupportedOperationException)
327
DO_THROW(ClassNotFoundException)
328
329
#undef DO_THROW
330
331
void fthrow_error(const char* file, int line, const char* format, ...) ATTRIBUTE_PRINTF(4, 5);
332
333
// Given an instance of HotSpotInstalledCode return the corresponding CodeBlob*. The
334
// nmethodLocker is required to keep the CodeBlob alive in the case where it's an nmethod.
335
CodeBlob* get_code_blob(JVMCIObject code, nmethodLocker& locker);
336
337
// Given an instance of HotSpotInstalledCode return the corresponding nmethod. The
338
// nmethodLocker is required to keep the nmethod alive.
339
nmethod* get_nmethod(JVMCIObject code, nmethodLocker& locker);
340
341
MethodData* asMethodData(jlong metaspaceMethodData) {
342
return (MethodData*) (address) metaspaceMethodData;
343
}
344
345
const char* klass_name(JVMCIObject object);
346
347
// Unpack an instance of HotSpotResolvedJavaMethodImpl into the original Method*
348
Method* asMethod(JVMCIObject jvmci_method);
349
Method* asMethod(jobject jvmci_method) { return asMethod(wrap(jvmci_method)); }
350
351
// Unpack an instance of HotSpotResolvedObjectTypeImpl into the original Klass*
352
Klass* asKlass(JVMCIObject jvmci_type);
353
Klass* asKlass(jobject jvmci_type) { return asKlass(wrap(jvmci_type)); }
354
355
JVMCIObject get_jvmci_method(const methodHandle& method, JVMCI_TRAPS);
356
357
JVMCIObject get_jvmci_type(const JVMCIKlassHandle& klass, JVMCI_TRAPS);
358
359
// Unpack an instance of HotSpotConstantPool into the original ConstantPool*
360
ConstantPool* asConstantPool(JVMCIObject constant_pool);
361
ConstantPool* asConstantPool(jobject constant_pool) { return asConstantPool(wrap(constant_pool)); }
362
363
JVMCIObject get_jvmci_constant_pool(const constantPoolHandle& cp, JVMCI_TRAPS);
364
JVMCIObject get_jvmci_primitive_type(BasicType type);
365
366
Handle asConstant(JVMCIObject object, JVMCI_TRAPS);
367
JVMCIObject get_object_constant(oop objOop, bool compressed = false, bool dont_register = false);
368
369
JVMCIPrimitiveArray new_booleanArray(int length, JVMCI_TRAPS);
370
JVMCIPrimitiveArray new_byteArray(int length, JVMCI_TRAPS);
371
JVMCIPrimitiveArray new_intArray(int length, JVMCI_TRAPS);
372
JVMCIPrimitiveArray new_longArray(int length, JVMCI_TRAPS);
373
374
JVMCIObjectArray new_byte_array_array(int length, JVMCI_TRAPS);
375
376
JVMCIObject new_StackTraceElement(const methodHandle& method, int bci, JVMCI_TRAPS);
377
JVMCIObject new_HotSpotNmethod(const methodHandle& method, const char* name, jboolean isDefault, jlong compileId, JVMCI_TRAPS);
378
JVMCIObject new_VMField(JVMCIObject name, JVMCIObject type, jlong offset, jlong address, JVMCIObject value, JVMCI_TRAPS);
379
JVMCIObject new_VMFlag(JVMCIObject name, JVMCIObject type, JVMCIObject value, JVMCI_TRAPS);
380
JVMCIObject new_VMIntrinsicMethod(JVMCIObject declaringClass, JVMCIObject name, JVMCIObject descriptor, int id, JVMCI_TRAPS);
381
JVMCIObject new_HotSpotStackFrameReference(JVMCI_TRAPS);
382
JVMCIObject new_JVMCIError(JVMCI_TRAPS);
383
384
jlong make_handle(const Handle& obj);
385
oop resolve_handle(jlong objectHandle);
386
387
// These are analagous to the JNI routines
388
JVMCIObject make_local(JVMCIObject object);
389
void destroy_local(JVMCIObject object);
390
391
// Makes a JNI global handle that is not scoped by the
392
// lifetime of a JVMCIRuntime (cf JVMCIRuntime::make_global).
393
// These JNI handles are used when translating an object
394
// between the HotSpot and JVMCI shared library heap via
395
// HotSpotJVMCIRuntime.translate(Object) and
396
// HotSpotJVMCIRuntime.unhand(Class<T>, long). Translation
397
// can happen in either direction so the referenced object
398
// can reside in either heap which is why JVMCIRuntime scoped
399
// handles cannot be used (they are specific to HotSpot heap objects).
400
JVMCIObject make_global(JVMCIObject object);
401
402
// Destroys a JNI global handle created by JVMCIEnv::make_global.
403
void destroy_global(JVMCIObject object);
404
405
// Deoptimizes the nmethod (if any) in the HotSpotNmethod.address
406
// field of mirror. The field is subsequently zeroed.
407
void invalidate_nmethod_mirror(JVMCIObject mirror, JVMCI_TRAPS);
408
409
void initialize_installed_code(JVMCIObject installed_code, CodeBlob* cb, JVMCI_TRAPS);
410
411
private:
412
JVMCICompileState* _compile_state;
413
414
public:
415
416
// Determines if this is for the JVMCI runtime in the HotSpot
417
// heap (true) or the shared library heap (false).
418
bool is_hotspot() { return _is_hotspot; }
419
420
JVMCICompileState* compile_state() { return _compile_state; }
421
void set_compile_state(JVMCICompileState* compile_state) {
422
assert(_compile_state == NULL, "set only once");
423
_compile_state = compile_state;
424
}
425
// Generate declarations for the initialize, new, isa, get and set methods for all the types and
426
// fields declared in the JVMCI_CLASSES_DO macro.
427
428
#define START_CLASS(className, fullClassName) \
429
void className##_initialize(JVMCI_TRAPS); \
430
JVMCIObjectArray new_##className##_array(int length, JVMCI_TRAPS); \
431
bool isa_##className(JVMCIObject object);
432
433
#define END_CLASS
434
435
#define FIELD(className, name, type, accessor) \
436
type get_ ## className ## _ ## name(JVMCIObject obj); \
437
void set_ ## className ## _ ## name(JVMCIObject obj, type x);
438
439
#define OOPISH_FIELD(className, name, type, hstype, accessor) \
440
FIELD(className, name, type, accessor)
441
442
#define STATIC_FIELD(className, name, type) \
443
type get_ ## className ## _ ## name(); \
444
void set_ ## className ## _ ## name(type x);
445
446
#define STATIC_OOPISH_FIELD(className, name, type, hstype) \
447
STATIC_FIELD(className, name, type)
448
449
#define EMPTY_CAST
450
#define CHAR_FIELD(className, name) FIELD(className, name, jchar, char_field)
451
#define INT_FIELD(className, name) FIELD(className, name, jint, int_field)
452
#define BOOLEAN_FIELD(className, name) FIELD(className, name, jboolean, bool_field)
453
#define LONG_FIELD(className, name) FIELD(className, name, jlong, long_field)
454
#define FLOAT_FIELD(className, name) FIELD(className, name, jfloat, float_field)
455
#define OBJECT_FIELD(className, name, signature) OOPISH_FIELD(className, name, JVMCIObject, oop, obj_field)
456
#define OBJECTARRAY_FIELD(className, name, signature) OOPISH_FIELD(className, name, JVMCIObjectArray, objArrayOop, obj_field)
457
#define PRIMARRAY_FIELD(className, name, signature) OOPISH_FIELD(className, name, JVMCIPrimitiveArray, typeArrayOop, obj_field)
458
459
#define STATIC_INT_FIELD(className, name) STATIC_FIELD(className, name, jint)
460
#define STATIC_BOOLEAN_FIELD(className, name) STATIC_FIELD(className, name, jboolean)
461
#define STATIC_OBJECT_FIELD(className, name, signature) STATIC_OOPISH_FIELD(className, name, JVMCIObject, oop)
462
#define STATIC_OBJECTARRAY_FIELD(className, name, signature) STATIC_OOPISH_FIELD(className, name, JVMCIObjectArray, objArrayOop)
463
#define METHOD(jniCallType, jniGetMethod, hsCallType, returnType, className, methodName, signatureSymbolName, args)
464
#define CONSTRUCTOR(className, signature)
465
466
JVMCI_CLASSES_DO(START_CLASS, END_CLASS, CHAR_FIELD, INT_FIELD, BOOLEAN_FIELD, LONG_FIELD, FLOAT_FIELD, OBJECT_FIELD, PRIMARRAY_FIELD, OBJECTARRAY_FIELD, STATIC_OBJECT_FIELD, STATIC_OBJECTARRAY_FIELD, STATIC_INT_FIELD, STATIC_BOOLEAN_FIELD, METHOD, CONSTRUCTOR)
467
468
#undef JNI_START_CLASS
469
#undef START_CLASS
470
#undef END_CLASS
471
#undef METHOD
472
#undef CONSTRUCTOR
473
#undef FIELD
474
#undef CHAR_FIELD
475
#undef INT_FIELD
476
#undef BOOLEAN_FIELD
477
#undef LONG_FIELD
478
#undef FLOAT_FIELD
479
#undef OBJECT_FIELD
480
#undef PRIMARRAY_FIELD
481
#undef OBJECTARRAY_FIELD
482
#undef FIELD
483
#undef OOPISH_FIELD
484
#undef STATIC_FIELD
485
#undef STATIC_OOPISH_FIELD
486
#undef STATIC_FIELD
487
#undef STATIC_OBJECT_FIELD
488
#undef STATIC_OBJECTARRAY_FIELD
489
#undef STATIC_INT_FIELD
490
#undef STATIC_BOOLEAN_FIELD
491
#undef EMPTY_CAST
492
493
// End of JVMCIEnv
494
};
495
496
#endif // SHARE_JVMCI_JVMCIENV_HPP
497
498