mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8049105: Move array component mirror to instance of java/lang/Class (hotspot part 2)
This removes component mirrors from arrayKlass metadata and the C2 intrinsic for them. Reviewed-by: kvn, twisti, mgerdin
This commit is contained in:
parent
d9da8946df
commit
73d759e533
23 changed files with 26 additions and 112 deletions
|
@ -1403,14 +1403,6 @@ JVM_QUICK_ENTRY(jboolean, JVM_IsPrimitiveClass(JNIEnv *env, jclass cls))
|
|||
JVM_END
|
||||
|
||||
|
||||
JVM_ENTRY(jclass, JVM_GetComponentType(JNIEnv *env, jclass cls))
|
||||
JVMWrapper("JVM_GetComponentType");
|
||||
oop mirror = JNIHandles::resolve_non_null(cls);
|
||||
oop result = Reflection::array_component_type(mirror, CHECK_NULL);
|
||||
return (jclass) JNIHandles::make_local(env, result);
|
||||
JVM_END
|
||||
|
||||
|
||||
JVM_ENTRY(jint, JVM_GetClassModifiers(JNIEnv *env, jclass cls))
|
||||
JVMWrapper("JVM_GetClassModifiers");
|
||||
if (java_lang_Class::is_primitive(JNIHandles::resolve_non_null(cls))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue