mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8216189: Remove Klass::compute_is_subtype_of
Reviewed-by: hseigel, jiangli
This commit is contained in:
parent
53f83ebdf9
commit
13fcbf9d8f
10 changed files with 9 additions and 56 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -395,14 +395,6 @@ GrowableArray<Klass*>* ObjArrayKlass::compute_secondary_supers(int num_extra_slo
|
|||
}
|
||||
}
|
||||
|
||||
bool ObjArrayKlass::compute_is_subtype_of(Klass* k) {
|
||||
if (!k->is_objArray_klass())
|
||||
return ArrayKlass::compute_is_subtype_of(k);
|
||||
|
||||
ObjArrayKlass* oak = ObjArrayKlass::cast(k);
|
||||
return element_klass()->is_subtype_of(oak->element_klass());
|
||||
}
|
||||
|
||||
void ObjArrayKlass::initialize(TRAPS) {
|
||||
bottom_klass()->initialize(THREAD); // dispatches to either InstanceKlass or TypeArrayKlass
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue