8223400: Replace some enums with static const members in hotspot/runtime

Reviewed-by: iklam, coleenp
This commit is contained in:
Magnus Ihse Bursie 2019-10-22 08:57:41 +02:00
parent 8bdffc5f7e
commit 41bd7c5e76
2 changed files with 12 additions and 14 deletions

View file

@ -2308,7 +2308,7 @@ JVM_ENTRY(void, JVM_GetClassCPTypes(JNIEnv *env, jclass cls, unsigned char *type
ConstantPool* cp = InstanceKlass::cast(k)->constants();
for (int index = cp->length() - 1; index >= 0; index--) {
constantTag tag = cp->tag_at(index);
types[index] = (tag.is_unresolved_klass()) ? JVM_CONSTANT_Class : tag.value();
types[index] = (tag.is_unresolved_klass()) ? (unsigned char) JVM_CONSTANT_Class : tag.value();
}
}
JVM_END