mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8266973: Migrate to ClassHierarchyIterator when enumerating subclasses
Reviewed-by: kvn, coleenp
This commit is contained in:
parent
02507bc40d
commit
9d168e25d1
9 changed files with 46 additions and 92 deletions
|
@ -827,7 +827,11 @@ C2V_END
|
|||
C2V_VMENTRY_0(jboolean, hasFinalizableSubclass,(JNIEnv* env, jobject, jobject jvmci_type))
|
||||
Klass* klass = JVMCIENV->asKlass(jvmci_type);
|
||||
assert(klass != NULL, "method must not be called for primitive types");
|
||||
return Dependencies::find_finalizable_subclass(klass) != NULL;
|
||||
if (!klass->is_instance_klass()) {
|
||||
return false;
|
||||
}
|
||||
InstanceKlass* iklass = InstanceKlass::cast(klass);
|
||||
return Dependencies::find_finalizable_subclass(iklass) != NULL;
|
||||
C2V_END
|
||||
|
||||
C2V_VMENTRY_NULL(jobject, getClassInitializer, (JNIEnv* env, jobject, jobject jvmci_type))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue