comparison src/share/vm/memory/universe.hpp @ 13403:9d15b81d5d1b

8016839: JSR292: AME instead of IAE when calling a method Summary: Catch missing-because-illegal case for itable entries and use an exception-throwing method instead of null. Reviewed-by: acorn, jrose, coleenp
author drchase
date Tue, 26 Nov 2013 18:16:04 -0500
parents da051ce490eb
children fa6c442c59ee
comparison
equal deleted inserted replaced
13397:e51d73189692 13403:9d15b81d5d1b
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
152 static Method* _throw_illegal_access_error;
153
152 // preallocated error objects (no backtrace) 154 // preallocated error objects (no backtrace)
153 static oop _out_of_memory_error_java_heap; 155 static oop _out_of_memory_error_java_heap;
154 static oop _out_of_memory_error_metaspace; 156 static oop _out_of_memory_error_metaspace;
155 static oop _out_of_memory_error_class_metaspace; 157 static oop _out_of_memory_error_class_metaspace;
156 static oop _out_of_memory_error_array_size; 158 static oop _out_of_memory_error_array_size;
303 305
304 static oop null_ptr_exception_instance() { return _null_ptr_exception_instance; } 306 static oop null_ptr_exception_instance() { return _null_ptr_exception_instance; }
305 static oop arithmetic_exception_instance() { return _arithmetic_exception_instance; } 307 static oop arithmetic_exception_instance() { return _arithmetic_exception_instance; }
306 static oop virtual_machine_error_instance() { return _virtual_machine_error_instance; } 308 static oop virtual_machine_error_instance() { return _virtual_machine_error_instance; }
307 static oop vm_exception() { return _vm_exception; } 309 static oop vm_exception() { return _vm_exception; }
310 static Method* throw_illegal_access_error() { return _throw_illegal_access_error; }
308 311
309 static Array<int>* the_empty_int_array() { return _the_empty_int_array; } 312 static Array<int>* the_empty_int_array() { return _the_empty_int_array; }
310 static Array<u2>* the_empty_short_array() { return _the_empty_short_array; } 313 static Array<u2>* the_empty_short_array() { return _the_empty_short_array; }
311 static Array<Method*>* the_empty_method_array() { return _the_empty_method_array; } 314 static Array<Method*>* the_empty_method_array() { return _the_empty_method_array; }
312 static Array<Klass*>* the_empty_klass_array() { return _the_empty_klass_array; } 315 static Array<Klass*>* the_empty_klass_array() { return _the_empty_klass_array; }