175 static oop _the_null_string; // A cache of "null" as a Java string |
175 static oop _the_null_string; // A cache of "null" as a Java string |
176 static oop _the_min_jint_string; // A cache of "-2147483648" as a Java string |
176 static oop _the_min_jint_string; // A cache of "-2147483648" as a Java string |
177 static LatestMethodOopCache* _finalizer_register_cache; // static method for registering finalizable objects |
177 static LatestMethodOopCache* _finalizer_register_cache; // static method for registering finalizable objects |
178 static LatestMethodOopCache* _loader_addClass_cache; // method for registering loaded classes in class loader vector |
178 static LatestMethodOopCache* _loader_addClass_cache; // method for registering loaded classes in class loader vector |
179 static ActiveMethodOopsCache* _reflect_invoke_cache; // method for security checks |
179 static ActiveMethodOopsCache* _reflect_invoke_cache; // method for security checks |
180 static oop _out_of_memory_error_java_heap; // preallocated error object (no backtrace) |
180 // preallocated error objects (no backtrace) |
181 static oop _out_of_memory_error_perm_gen; // preallocated error object (no backtrace) |
181 static oop _out_of_memory_error_java_heap; |
182 static oop _out_of_memory_error_array_size;// preallocated error object (no backtrace) |
182 static oop _out_of_memory_error_metaspace; |
183 static oop _out_of_memory_error_gc_overhead_limit; // preallocated error object (no backtrace) |
183 static oop _out_of_memory_error_class_metaspace; |
|
184 static oop _out_of_memory_error_array_size; |
|
185 static oop _out_of_memory_error_gc_overhead_limit; |
184 |
186 |
185 static Array<int>* _the_empty_int_array; // Canonicalized int array |
187 static Array<int>* _the_empty_int_array; // Canonicalized int array |
186 static Array<u2>* _the_empty_short_array; // Canonicalized short array |
188 static Array<u2>* _the_empty_short_array; // Canonicalized short array |
187 static Array<Klass*>* _the_empty_klass_array; // Canonicalized klass obj array |
189 static Array<Klass*>* _the_empty_klass_array; // Canonicalized klass obj array |
188 static Array<Method*>* _the_empty_method_array; // Canonicalized method obj array |
190 static Array<Method*>* _the_empty_method_array; // Canonicalized method obj array |
346 |
348 |
347 // OutOfMemoryError support. Returns an error with the required message. The returned error |
349 // OutOfMemoryError support. Returns an error with the required message. The returned error |
348 // may or may not have a backtrace. If error has a backtrace then the stack trace is already |
350 // may or may not have a backtrace. If error has a backtrace then the stack trace is already |
349 // filled in. |
351 // filled in. |
350 static oop out_of_memory_error_java_heap() { return gen_out_of_memory_error(_out_of_memory_error_java_heap); } |
352 static oop out_of_memory_error_java_heap() { return gen_out_of_memory_error(_out_of_memory_error_java_heap); } |
351 static oop out_of_memory_error_perm_gen() { return gen_out_of_memory_error(_out_of_memory_error_perm_gen); } |
353 static oop out_of_memory_error_metaspace() { return gen_out_of_memory_error(_out_of_memory_error_metaspace); } |
|
354 static oop out_of_memory_error_class_metaspace() { return gen_out_of_memory_error(_out_of_memory_error_class_metaspace); } |
352 static oop out_of_memory_error_array_size() { return gen_out_of_memory_error(_out_of_memory_error_array_size); } |
355 static oop out_of_memory_error_array_size() { return gen_out_of_memory_error(_out_of_memory_error_array_size); } |
353 static oop out_of_memory_error_gc_overhead_limit() { return gen_out_of_memory_error(_out_of_memory_error_gc_overhead_limit); } |
356 static oop out_of_memory_error_gc_overhead_limit() { return gen_out_of_memory_error(_out_of_memory_error_gc_overhead_limit); } |
354 |
357 |
355 // Accessors needed for fast allocation |
358 // Accessors needed for fast allocation |
356 static Klass** boolArrayKlassObj_addr() { return &_boolArrayKlassObj; } |
359 static Klass** boolArrayKlassObj_addr() { return &_boolArrayKlassObj; } |