mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8249768: Move static oops and NullPointerException oops from Universe into OopStorage
Make NPE oops an objArrayOop. Reviewed-by: dholmes, eosterlund
This commit is contained in:
parent
4d43cf9fc6
commit
2d8e74ddea
14 changed files with 241 additions and 219 deletions
|
@ -812,8 +812,7 @@ oop Reflection::new_method(const methodHandle& method, bool for_constant_pool_ac
|
|||
Handle return_type(THREAD, return_type_oop);
|
||||
|
||||
objArrayHandle exception_types = get_exception_types(method, CHECK_NULL);
|
||||
|
||||
if (exception_types.is_null()) return NULL;
|
||||
assert(!exception_types.is_null(), "cannot return null");
|
||||
|
||||
Symbol* method_name = method->name();
|
||||
oop name_oop = StringTable::intern(method_name, CHECK_NULL);
|
||||
|
@ -859,7 +858,7 @@ oop Reflection::new_constructor(const methodHandle& method, TRAPS) {
|
|||
if (parameter_types.is_null()) return NULL;
|
||||
|
||||
objArrayHandle exception_types = get_exception_types(method, CHECK_NULL);
|
||||
if (exception_types.is_null()) return NULL;
|
||||
assert(!exception_types.is_null(), "cannot return null");
|
||||
|
||||
const int modifiers = method->access_flags().as_int() & JVM_RECOGNIZED_METHOD_MODIFIERS;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue