mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8230505: Replace JVM type comparisons to T_OBJECT and T_ARRAY with call to is_reference_type
Consistently use is_reference_type when comparing type for T_OBJECT or T_ARRAY. Co-authored-by: John Rose <john.r.rose@oracle.com> Reviewed-by: dlong, coleenp, hseigel
This commit is contained in:
parent
c080a4a4d5
commit
0c507f3180
67 changed files with 183 additions and 183 deletions
|
@ -92,7 +92,7 @@ oop Reflection::box(jvalue* value, BasicType type, TRAPS) {
|
|||
if (type == T_VOID) {
|
||||
return NULL;
|
||||
}
|
||||
if (type == T_OBJECT || type == T_ARRAY) {
|
||||
if (is_reference_type(type)) {
|
||||
// regular objects are not boxed
|
||||
return (oop) value->l;
|
||||
}
|
||||
|
@ -756,7 +756,7 @@ static oop get_mirror_from_signature(const methodHandle& method,
|
|||
TRAPS) {
|
||||
|
||||
|
||||
if (T_OBJECT == ss->type() || T_ARRAY == ss->type()) {
|
||||
if (is_reference_type(ss->type())) {
|
||||
Symbol* name = ss->as_symbol();
|
||||
oop loader = method->method_holder()->class_loader();
|
||||
oop protection_domain = method->method_holder()->protection_domain();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue