146 static oop _the_null_string; // A cache of "null" as a Java string |
146 static oop _the_null_string; // A cache of "null" as a Java string |
147 static oop _the_min_jint_string; // A cache of "-2147483648" as a Java string |
147 static oop _the_min_jint_string; // A cache of "-2147483648" as a Java string |
148 static LatestMethodCache* _finalizer_register_cache; // static method for registering finalizable objects |
148 static LatestMethodCache* _finalizer_register_cache; // static method for registering finalizable objects |
149 static LatestMethodCache* _loader_addClass_cache; // method for registering loaded classes in class loader vector |
149 static LatestMethodCache* _loader_addClass_cache; // method for registering loaded classes in class loader vector |
150 static LatestMethodCache* _pd_implies_cache; // method for checking protection domain attributes |
150 static LatestMethodCache* _pd_implies_cache; // method for checking protection domain attributes |
151 |
151 static LatestMethodCache* _throw_illegal_access_error_cache; // Unsafe.throwIllegalAccessError() method |
152 static Method* _throw_illegal_access_error; |
|
153 |
152 |
154 // preallocated error objects (no backtrace) |
153 // preallocated error objects (no backtrace) |
155 static oop _out_of_memory_error_java_heap; |
154 static oop _out_of_memory_error_java_heap; |
156 static oop _out_of_memory_error_metaspace; |
155 static oop _out_of_memory_error_metaspace; |
157 static oop _out_of_memory_error_class_metaspace; |
156 static oop _out_of_memory_error_class_metaspace; |
303 |
302 |
304 static Method* finalizer_register_method() { return _finalizer_register_cache->get_method(); } |
303 static Method* finalizer_register_method() { return _finalizer_register_cache->get_method(); } |
305 static Method* loader_addClass_method() { return _loader_addClass_cache->get_method(); } |
304 static Method* loader_addClass_method() { return _loader_addClass_cache->get_method(); } |
306 |
305 |
307 static Method* protection_domain_implies_method() { return _pd_implies_cache->get_method(); } |
306 static Method* protection_domain_implies_method() { return _pd_implies_cache->get_method(); } |
|
307 static Method* throw_illegal_access_error() { return _throw_illegal_access_error_cache->get_method(); } |
308 |
308 |
309 static oop null_ptr_exception_instance() { return _null_ptr_exception_instance; } |
309 static oop null_ptr_exception_instance() { return _null_ptr_exception_instance; } |
310 static oop arithmetic_exception_instance() { return _arithmetic_exception_instance; } |
310 static oop arithmetic_exception_instance() { return _arithmetic_exception_instance; } |
311 static oop virtual_machine_error_instance() { return _virtual_machine_error_instance; } |
311 static oop virtual_machine_error_instance() { return _virtual_machine_error_instance; } |
312 static oop vm_exception() { return _vm_exception; } |
312 static oop vm_exception() { return _vm_exception; } |
313 |
313 |
314 static inline oop allocation_context_notification_obj(); |
314 static inline oop allocation_context_notification_obj(); |
315 static inline void set_allocation_context_notification_obj(oop obj); |
315 static inline void set_allocation_context_notification_obj(oop obj); |
316 |
|
317 static Method* throw_illegal_access_error() { return _throw_illegal_access_error; } |
|
318 |
316 |
319 static Array<int>* the_empty_int_array() { return _the_empty_int_array; } |
317 static Array<int>* the_empty_int_array() { return _the_empty_int_array; } |
320 static Array<u2>* the_empty_short_array() { return _the_empty_short_array; } |
318 static Array<u2>* the_empty_short_array() { return _the_empty_short_array; } |
321 static Array<Method*>* the_empty_method_array() { return _the_empty_method_array; } |
319 static Array<Method*>* the_empty_method_array() { return _the_empty_method_array; } |
322 static Array<Klass*>* the_empty_klass_array() { return _the_empty_klass_array; } |
320 static Array<Klass*>* the_empty_klass_array() { return _the_empty_klass_array; } |