1 /*
   2  * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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_VM_JVMCI_JVMCIENV_HPP
  26 #define SHARE_VM_JVMCI_JVMCIENV_HPP
  27 
  28 #include "classfile/javaClasses.hpp"
  29 #include "jvmci/jvmciJavaClasses.hpp"
  30 #include "runtime/thread.hpp"
  31 
  32 class CompileTask;
  33 class JVMCIObject;
  34 class JVMCIObjectArray;
  35 class JVMCIPrimitiveArray;
  36 class JVMCICompiler;
  37 class JVMCIRuntime;
  38 
  39 #define JVMCI_EXCEPTION_CONTEXT \
  40   JavaThread* thread=JavaThread::current(); \
  41   Thread* THREAD = thread;
  42 
  43 // Helper to log more context on a JNI exception
  44 #define JVMCI_EXCEPTION_CHECK(env, ...) \
  45   do { \
  46     if (env->ExceptionCheck()) { \
  47       if (env != JavaThread::current()->jni_environment()) { \
  48         char* sl_path; \
  49         if (::JVMCI::get_shared_library(sl_path, false) != NULL) { \
  50           tty->print_cr("In JVMCI shared library (%s):", sl_path); \
  51         } \
  52       } \
  53       tty->print_cr(__VA_ARGS__); \
  54       return; \
  55     } \
  56   } while(0)
  57 
  58 // Helper class to ensure that references to Klass* are kept alive for G1
  59 class JVMCIKlassHandle : public StackObj {
  60  private:
  61   Klass*     _klass;
  62   Handle     _holder;
  63   Thread*    _thread;
  64 
  65   Klass*        klass() const                     { return _klass; }
  66   Klass*        non_null_klass() const            { assert(_klass != NULL, "resolving NULL _klass"); return _klass; }
  67 
  68  public:
  69   /* Constructors */
  70   JVMCIKlassHandle (Thread* thread) : _klass(NULL), _thread(thread) {}
  71   JVMCIKlassHandle (Thread* thread, Klass* klass);
  72 
  73   JVMCIKlassHandle (const JVMCIKlassHandle &h): _klass(h._klass), _holder(h._holder), _thread(h._thread) {}
  74   JVMCIKlassHandle& operator=(const JVMCIKlassHandle &s);
  75   JVMCIKlassHandle& operator=(Klass* klass);
  76 
  77   /* Operators for ease of use */
  78   Klass*        operator () () const            { return klass(); }
  79   Klass*        operator -> () const            { return non_null_klass(); }
  80 
  81   bool    operator == (Klass* o) const          { return klass() == o; }
  82   bool    operator == (const JVMCIKlassHandle& h) const  { return klass() == h.klass(); }
  83 
  84   /* Null checks */
  85   bool    is_null() const                      { return _klass == NULL; }
  86   bool    not_null() const                     { return _klass != NULL; }
  87 };
  88 
  89 // A class that maintains the state needed for compilations requested
  90 // by the CompileBroker.  It is created in the broker and passed through
  91 // into the code installation step.
  92 class JVMCICompileState : public ResourceObj {
  93   friend class JVMCIVMStructs;
  94  private:
  95   CompileTask*     _task;
  96   int              _system_dictionary_modification_counter;
  97 
  98   // Cache JVMTI state. Defined as bytes so that reading them from Java
  99   // via Unsafe is well defined (the C++ type for bool is implementation
 100   // defined and may not be the same as a Java boolean).
 101   jbyte  _jvmti_can_hotswap_or_post_breakpoint;
 102   jbyte  _jvmti_can_access_local_variables;
 103   jbyte  _jvmti_can_post_on_exceptions;
 104   jbyte  _jvmti_can_pop_frame;
 105 
 106   // Compilation result values.
 107   bool             _retryable;
 108   const char*      _failure_reason;
 109 
 110   // Specifies if _failure_reason is on the C heap. If so, it is allocated
 111   // with the mtJVMCI NMT flag.
 112   bool             _failure_reason_on_C_heap;
 113 
 114  public:
 115   JVMCICompileState(CompileTask* task, int system_dictionary_modification_counter);
 116 
 117   CompileTask* task() { return _task; }
 118 
 119   int system_dictionary_modification_counter() { return _system_dictionary_modification_counter; }
 120   bool  jvmti_state_changed() const;
 121   bool  jvmti_can_hotswap_or_post_breakpoint() const { return  _jvmti_can_hotswap_or_post_breakpoint != 0; }
 122   bool  jvmti_can_access_local_variables() const     { return  _jvmti_can_access_local_variables != 0; }
 123   bool  jvmti_can_post_on_exceptions() const         { return  _jvmti_can_post_on_exceptions != 0; }
 124   bool  jvmti_can_pop_frame() const                  { return  _jvmti_can_pop_frame != 0; }
 125 
 126   const char* failure_reason() { return _failure_reason; }
 127   bool failure_reason_on_C_heap() { return _failure_reason_on_C_heap; }
 128   bool retryable() { return _retryable; }
 129 
 130   void set_failure(bool retryable, const char* reason, bool reason_on_C_heap = false) {
 131     _failure_reason = reason;
 132     _failure_reason_on_C_heap = reason_on_C_heap;
 133     _retryable = retryable;
 134   }
 135 };
 136 
 137 
 138 // This class is a top level wrapper around interactions between HotSpot
 139 // and the JVMCI Java code.  It supports both a HotSpot heap based
 140 // runtime with HotSpot oop based accessors as well as a shared library
 141 // based runtime that is accessed through JNI. It abstracts away all
 142 // interactions with JVMCI objects so that a single version of the
 143 // HotSpot C++ code can can work with either runtime.
 144 class JVMCIEnv : public ResourceObj {
 145   friend class JNIAccessMark;
 146 










 147   // Initializes the _env, _mode and _runtime fields.
 148   void init_env_mode_runtime(JavaThread* thread, JNIEnv* parent_env);
 149 
 150   void init(JavaThread* thread, bool is_hotspot, const char* file, int line);
 151 
 152   JNIEnv*                 _env;  // JNI env for calling into shared library
 153   bool     _pop_frame_on_close;  // Must pop frame on close?
 154   bool        _detach_on_close;  // Must detach on close?
 155   JVMCIRuntime*       _runtime;  // Access to a HotSpotJVMCIRuntime
 156   bool             _is_hotspot;  // Which heap is the HotSpotJVMCIRuntime in
 157   bool        _throw_to_caller;  // Propagate an exception raised in this env to the caller?
 158   const char*            _file;  // The file and ...
 159   int                    _line;  // ... line where this JNIEnv was created
 160 
 161   // Translates an exception on the HotSpot heap to an exception on
 162   // the shared library heap. The translation includes the stack and
 163   // causes of `throwable`. The translated exception is pending in the
 164   // shared library thread upon returning.
 165   void translate_hotspot_exception_to_jni_exception(JavaThread* THREAD, const Handle& throwable);
 166 
 167 public:
 168   // Opens a JVMCIEnv scope for a Java to VM call (e.g., via CompilerToVM).
 169   // An exception occurring within the scope is left pending when the
 170   // scope closes so that it will be propagated back to Java.
 171   // The JVMCIEnv destructor translates the exception object for the
 172   // Java runtime if necessary.
 173   JVMCIEnv(JavaThread* thread, JNIEnv* env, const char* file, int line);
 174 
 175   // Opens a JVMCIEnv scope for a compilation scheduled by the CompileBroker.
 176   // An exception occurring within the scope must not be propagated back to
 177   // the CompileBroker.
 178   JVMCIEnv(JavaThread* thread, JVMCICompileState* compile_state, const char* file, int line);
 179 
 180   // Opens a JNIEnv scope for a call from within the VM. An exception occurring
 181   // within the scope must not be propagated back to the caller.
 182   JVMCIEnv(JavaThread* env, const char* file, int line);
 183 
 184   // Opens a JNIEnv scope for accessing `for_object`. An exception occurring
 185   // within the scope must not be propagated back to the caller.
 186   JVMCIEnv(JavaThread* thread, JVMCIObject for_object, const char* file, int line) {
 187     // A JNI call to access an object in the shared library heap
 188     // can block or take a long time so do not allow such access
 189     // on the VM thread.
 190     assert(for_object.is_hotspot() || !Thread::current()->is_VM_thread(),
 191         "cannot open JVMCIEnv scope when in the VM thread for accessing a shared library heap object");
 192     init(thread, for_object.is_hotspot(), file, line);
 193   }
 194 
 195   // Opens a JNIEnv scope for the HotSpot runtime if `is_hotspot` is true
 196   // otherwise for the shared library runtime. An exception occurring
 197   // within the scope must not be propagated back to the caller.
 198   JVMCIEnv(JavaThread* thread, bool is_hotspot, const char* file, int line) {
 199     init(thread, is_hotspot, file, line);
 200   }
 201 
 202   ~JVMCIEnv();
 203 
 204   JVMCIRuntime* runtime() {
 205     return _runtime;
 206   }
 207 
 208   // Initializes Services.savedProperties in the shared library by copying
 209   // the values from the same field in the HotSpot heap.
 210   void copy_saved_properties();
 211 
 212   jboolean has_pending_exception();
 213   void clear_pending_exception();
 214 
 215   // Prints an exception and stack trace of a pending exception.
 216   void describe_pending_exception(bool clear);
 217 
 218   int get_length(JVMCIArray array);
 219 
 220   JVMCIObject get_object_at(JVMCIObjectArray array, int index);
 221   void put_object_at(JVMCIObjectArray array, int index, JVMCIObject value);
 222 
 223   jboolean get_bool_at(JVMCIPrimitiveArray array, int index);
 224   void put_bool_at(JVMCIPrimitiveArray array, int index, jboolean value);
 225 
 226   jbyte get_byte_at(JVMCIPrimitiveArray array, int index);
 227   void put_byte_at(JVMCIPrimitiveArray array, int index, jbyte value);
 228 
 229   jint get_int_at(JVMCIPrimitiveArray array, int index);
 230   void put_int_at(JVMCIPrimitiveArray array, int index, jint value);
 231 
 232   long get_long_at(JVMCIPrimitiveArray array, int index);
 233   void put_long_at(JVMCIPrimitiveArray array, int index, jlong value);
 234 
 235   void copy_bytes_to(JVMCIPrimitiveArray src, jbyte* dest, int offset, jsize length);
 236   void copy_bytes_from(jbyte* src, JVMCIPrimitiveArray dest, int offset, jsize length);
 237 
 238   void copy_longs_from(jlong* src, JVMCIPrimitiveArray dest, int offset, jsize length);
 239 
 240   JVMCIObjectArray initialize_intrinsics(JVMCI_TRAPS);
 241 
 242   jboolean is_boxing_object(BasicType type, JVMCIObject object);
 243 
 244   // Get the primitive value from a Java boxing object.  It's hard error to
 245   // pass a non-primitive BasicType.
 246   jvalue get_boxed_value(BasicType type, JVMCIObject object);
 247 
 248   // Return the BasicType of the object if it's a boxing object, otherwise return T_ILLEGAL.
 249   BasicType get_box_type(JVMCIObject object);
 250 
 251   // Create a boxing object of the appropriate primitive type.
 252   JVMCIObject create_box(BasicType type, jvalue* value, JVMCI_TRAPS);
 253 
 254   const char* as_utf8_string(JVMCIObject str);
 255   char* as_utf8_string(JVMCIObject str, char* buf, int buflen);
 256 
 257   JVMCIObject create_string(Symbol* str, JVMCI_TRAPS) {
 258     JVMCIObject s = create_string(str->as_C_string(), JVMCI_CHECK_(JVMCIObject()));
 259     return s;
 260   }
 261 
 262   JVMCIObject create_string(const char* str, JVMCI_TRAPS);
 263 
 264   bool equals(JVMCIObject a, JVMCIObject b);
 265 
 266   // Convert into a JNI handle for the appropriate runtime
 267   jobject get_jobject(JVMCIObject object)                       { assert(object.as_jobject() == NULL || is_hotspot() == object.is_hotspot(), "mismatch"); return object.as_jobject(); }
 268   jarray get_jarray(JVMCIArray array)                           { assert(array.as_jobject() == NULL || is_hotspot() == array.is_hotspot(), "mismatch"); return array.as_jobject(); }
 269   jobjectArray get_jobjectArray(JVMCIObjectArray objectArray)   { assert(objectArray.as_jobject() == NULL || is_hotspot() == objectArray.is_hotspot(), "mismatch"); return objectArray.as_jobject(); }
 270   jbyteArray get_jbyteArray(JVMCIPrimitiveArray primitiveArray) { assert(primitiveArray.as_jobject() == NULL || is_hotspot() == primitiveArray.is_hotspot(), "mismatch"); return primitiveArray.as_jbyteArray(); }
 271 
 272   JVMCIObject         wrap(jobject obj);
 273   JVMCIObjectArray    wrap(jobjectArray obj)  { return (JVMCIObjectArray)    wrap((jobject) obj); }
 274   JVMCIPrimitiveArray wrap(jintArray obj)     { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
 275   JVMCIPrimitiveArray wrap(jbooleanArray obj) { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
 276   JVMCIPrimitiveArray wrap(jbyteArray obj)    { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
 277   JVMCIPrimitiveArray wrap(jlongArray obj)    { return (JVMCIPrimitiveArray) wrap((jobject) obj); }
 278 
 279  private:
 280   JVMCIObject wrap(oop obj)                  { assert(is_hotspot(), "must be"); return wrap(JNIHandles::make_local(obj)); }
 281   JVMCIObjectArray wrap(objArrayOop obj)     { assert(is_hotspot(), "must be"); return (JVMCIObjectArray) wrap(JNIHandles::make_local(obj)); }
 282   JVMCIPrimitiveArray wrap(typeArrayOop obj) { assert(is_hotspot(), "must be"); return (JVMCIPrimitiveArray) wrap(JNIHandles::make_local(obj)); }
 283 
 284  public:
 285   // Compiles a method with the JVMIC compiler.
 286   // Caller must handle pending exception.
 287   JVMCIObject call_HotSpotJVMCIRuntime_compileMethod(JVMCIObject runtime, JVMCIObject method, int entry_bci,
 288                                                      jlong compile_state, int id);
 289 
 290   void call_HotSpotJVMCIRuntime_bootstrapFinished(JVMCIObject runtime, JVMCI_TRAPS);
 291   void call_HotSpotJVMCIRuntime_shutdown(JVMCIObject runtime);
 292   JVMCIObject call_HotSpotJVMCIRuntime_runtime(JVMCI_TRAPS);
 293   JVMCIObject call_JVMCI_getRuntime(JVMCI_TRAPS);
 294   JVMCIObject call_HotSpotJVMCIRuntime_getCompiler(JVMCIObject runtime, JVMCI_TRAPS);
 295 
 296   JVMCIObject call_HotSpotJVMCIRuntime_callToString(JVMCIObject object, JVMCI_TRAPS);
 297 
 298   JVMCIObject call_PrimitiveConstant_forTypeChar(jchar kind, jlong value, JVMCI_TRAPS);
 299   JVMCIObject call_JavaConstant_forFloat(float value, JVMCI_TRAPS);
 300   JVMCIObject call_JavaConstant_forDouble(double value, JVMCI_TRAPS);
 301 
 302   BasicType kindToBasicType(JVMCIObject kind, JVMCI_TRAPS);
 303 
 304 #define DO_THROW(name) \
 305   void throw_##name(const char* msg = NULL);
 306 
 307   DO_THROW(InternalError)
 308   DO_THROW(ArrayIndexOutOfBoundsException)
 309   DO_THROW(IllegalStateException)
 310   DO_THROW(NullPointerException)
 311   DO_THROW(IllegalArgumentException)
 312   DO_THROW(InvalidInstalledCodeException)
 313   DO_THROW(UnsatisfiedLinkError)
 314   DO_THROW(UnsupportedOperationException)
 315   DO_THROW(ClassNotFoundException)
 316 
 317 #undef DO_THROW
 318 
 319   void fthrow_error(const char* file, int line, const char* format, ...) ATTRIBUTE_PRINTF(4, 5);
 320 
 321   // Given an instance of HotSpotInstalledCode return the corresponding CodeBlob*.  The
 322   // nmethodLocker is required to keep the CodeBlob alive in the case where it's an nmethod.
 323   CodeBlob* get_code_blob(JVMCIObject code, nmethodLocker& locker);
 324 
 325   // Given an instance of HotSpotInstalledCode return the corresponding nmethod.  The
 326   // nmethodLocker is required to keep the nmethod alive.
 327   nmethod* get_nmethod(JVMCIObject code, nmethodLocker& locker);
 328 
 329   MethodData* asMethodData(jlong metaspaceMethodData) {
 330     return (MethodData*) (address) metaspaceMethodData;
 331   }
 332 
 333   const char* klass_name(JVMCIObject object);
 334 
 335   // Unpack an instance of HotSpotResolvedJavaMethodImpl into the original Method*
 336   Method* asMethod(JVMCIObject jvmci_method);
 337   Method* asMethod(jobject jvmci_method) { return asMethod(wrap(jvmci_method)); }
 338 
 339   // Unpack an instance of HotSpotResolvedObjectTypeImpl into the original Klass*
 340   Klass* asKlass(JVMCIObject jvmci_type);
 341   Klass* asKlass(jobject jvmci_type)  { return asKlass(wrap(jvmci_type)); }
 342 
 343   JVMCIObject get_jvmci_method(const methodHandle& method, JVMCI_TRAPS);
 344 
 345   JVMCIObject get_jvmci_type(const JVMCIKlassHandle& klass, JVMCI_TRAPS);
 346 
 347   // Unpack an instance of HotSpotConstantPool into the original ConstantPool*
 348   ConstantPool* asConstantPool(JVMCIObject constant_pool);
 349   ConstantPool* asConstantPool(jobject constant_pool)  { return asConstantPool(wrap(constant_pool)); }
 350 
 351   JVMCIObject get_jvmci_constant_pool(const constantPoolHandle& cp, JVMCI_TRAPS);
 352   JVMCIObject get_jvmci_primitive_type(BasicType type);
 353 
 354   Handle asConstant(JVMCIObject object, JVMCI_TRAPS);
 355   JVMCIObject get_object_constant(oop objOop, bool compressed = false, bool dont_register = false);
 356 
 357   JVMCIPrimitiveArray new_booleanArray(int length, JVMCI_TRAPS);
 358   JVMCIPrimitiveArray new_byteArray(int length, JVMCI_TRAPS);
 359   JVMCIPrimitiveArray new_intArray(int length, JVMCI_TRAPS);
 360   JVMCIPrimitiveArray new_longArray(int length, JVMCI_TRAPS);
 361 
 362   JVMCIObjectArray new_byte_array_array(int length, JVMCI_TRAPS);
 363 
 364   JVMCIObject new_StackTraceElement(const methodHandle& method, int bci, JVMCI_TRAPS);
 365   JVMCIObject new_HotSpotNmethod(const methodHandle& method, const char* name, jboolean isDefault, jlong compileId, JVMCI_TRAPS);
 366   JVMCIObject new_VMField(JVMCIObject name, JVMCIObject type, jlong offset, jlong address, JVMCIObject value, JVMCI_TRAPS);
 367   JVMCIObject new_VMFlag(JVMCIObject name, JVMCIObject type, JVMCIObject value, JVMCI_TRAPS);
 368   JVMCIObject new_VMIntrinsicMethod(JVMCIObject declaringClass, JVMCIObject name, JVMCIObject descriptor, int id, JVMCI_TRAPS);
 369   JVMCIObject new_HotSpotStackFrameReference(JVMCI_TRAPS);
 370   JVMCIObject new_JVMCIError(JVMCI_TRAPS);
 371 
 372   jlong make_handle(const Handle& obj);
 373   oop resolve_handle(jlong objectHandle);
 374 
 375   // These are analagous to the JNI routines
 376   JVMCIObject make_local(JVMCIObject object);
 377   JVMCIObject make_global(JVMCIObject object);

 378   void destroy_local(JVMCIObject object);
 379   void destroy_global(JVMCIObject object);

 380 
 381   // Deoptimizes the nmethod (if any) in the HotSpotNmethod.address
 382   // field of mirror. The field is subsequently zeroed.
 383   void invalidate_nmethod_mirror(JVMCIObject mirror, JVMCI_TRAPS);
 384 
 385   void initialize_installed_code(JVMCIObject installed_code, CodeBlob* cb, JVMCI_TRAPS);
 386 
 387  private:
 388   JVMCICompileState* _compile_state;
 389 
 390  public:



 391 
 392   // Determines if this is for the JVMCI runtime in the HotSpot
 393   // heap (true) or the shared library heap (false).
 394   bool is_hotspot() { return _is_hotspot; }
 395 
 396   JVMCICompileState* compile_state() { return _compile_state; }
 397   void set_compile_state(JVMCICompileState* compile_state) {
 398     assert(_compile_state == NULL, "set only once");
 399     _compile_state = compile_state;
 400   }
 401   // Generate declarations for the initialize, new, isa, get and set methods for all the types and
 402   // fields declared in the JVMCI_CLASSES_DO macro.
 403 
 404 #define START_CLASS(className, fullClassName)                           \
 405   void className##_initialize(JVMCI_TRAPS); \
 406   JVMCIObjectArray new_##className##_array(int length, JVMCI_TRAPS); \
 407   bool isa_##className(JVMCIObject object);
 408 
 409 #define END_CLASS
 410 
 411 #define FIELD(className, name, type, accessor)                                                                                                                         \
 412   type get_ ## className ## _ ## name(JVMCIObject obj); \
 413   void set_ ## className ## _ ## name(JVMCIObject obj, type x);
 414 
 415 #define OOPISH_FIELD(className, name, type, hstype, accessor) \
 416   FIELD(className, name, type, accessor)
 417 
 418 #define STATIC_FIELD(className, name, type) \
 419   type get_ ## className ## _ ## name(); \
 420   void set_ ## className ## _ ## name(type x);
 421 
 422 #define STATIC_OOPISH_FIELD(className, name, type, hstype) \
 423   STATIC_FIELD(className, name, type)
 424 
 425 #define EMPTY_CAST
 426 #define CHAR_FIELD(className,  name) FIELD(className, name, jchar, char_field)
 427 #define INT_FIELD(className,  name) FIELD(className, name, jint, int_field)
 428 #define BOOLEAN_FIELD(className,  name) FIELD(className, name, jboolean, bool_field)
 429 #define LONG_FIELD(className,  name) FIELD(className, name, jlong, long_field)
 430 #define FLOAT_FIELD(className,  name) FIELD(className, name, jfloat, float_field)
 431 #define OBJECT_FIELD(className,  name, signature) OOPISH_FIELD(className, name, JVMCIObject, oop, obj_field)
 432 #define OBJECTARRAY_FIELD(className,  name, signature) OOPISH_FIELD(className, name, JVMCIObjectArray, objArrayOop, obj_field)
 433 #define PRIMARRAY_FIELD(className,  name, signature) OOPISH_FIELD(className, name, JVMCIPrimitiveArray, typeArrayOop, obj_field)
 434 
 435 #define STATIC_INT_FIELD(className, name) STATIC_FIELD(className, name, jint)
 436 #define STATIC_BOOLEAN_FIELD(className, name) STATIC_FIELD(className, name, jboolean)
 437 #define STATIC_OBJECT_FIELD(className, name, signature) STATIC_OOPISH_FIELD(className, name, JVMCIObject, oop)
 438 #define STATIC_OBJECTARRAY_FIELD(className, name, signature) STATIC_OOPISH_FIELD(className, name, JVMCIObjectArray, objArrayOop)
 439 #define METHOD(jniCallType, jniGetMethod, hsCallType, returnType, className, methodName, signatureSymbolName, args)
 440 #define CONSTRUCTOR(className, signature)
 441 
 442   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)
 443 
 444 #undef JNI_START_CLASS
 445 #undef START_CLASS
 446 #undef END_CLASS
 447 #undef METHOD
 448 #undef CONSTRUCTOR
 449 #undef FIELD
 450 #undef CHAR_FIELD
 451 #undef INT_FIELD
 452 #undef BOOLEAN_FIELD
 453 #undef LONG_FIELD
 454 #undef FLOAT_FIELD
 455 #undef OBJECT_FIELD
 456 #undef PRIMARRAY_FIELD
 457 #undef OBJECTARRAY_FIELD
 458 #undef FIELD
 459 #undef OOPISH_FIELD
 460 #undef STATIC_FIELD
 461 #undef STATIC_OOPISH_FIELD
 462 #undef STATIC_FIELD
 463 #undef STATIC_OBJECT_FIELD
 464 #undef STATIC_OBJECTARRAY_FIELD
 465 #undef STATIC_INT_FIELD
 466 #undef STATIC_BOOLEAN_FIELD
 467 #undef EMPTY_CAST
 468 
 469   // End of JVMCIEnv
 470 };
 471 
 472 #endif // SHARE_VM_JVMCI_JVMCIENV_HPP
--- EOF ---