mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
This commit is contained in:
parent
f5ef48f3b9
commit
6e8a263a06
66 changed files with 1031 additions and 461 deletions
|
@ -1808,7 +1808,7 @@ JVM_ENTRY(jclass, JVM_ConstantPoolGetClassAt(JNIEnv *env, jobject unused, jobjec
|
|||
THROW_MSG_0(vmSymbols::java_lang_IllegalArgumentException(), "Wrong type at constant pool index");
|
||||
}
|
||||
klassOop k = cp->klass_at(index, CHECK_NULL);
|
||||
return (jclass) JNIHandles::make_local(k->klass_part()->java_mirror());
|
||||
return (jclass) JNIHandles::make_local(k->java_mirror());
|
||||
}
|
||||
JVM_END
|
||||
|
||||
|
@ -1824,7 +1824,7 @@ JVM_ENTRY(jclass, JVM_ConstantPoolGetClassAtIfLoaded(JNIEnv *env, jobject unused
|
|||
}
|
||||
klassOop k = constantPoolOopDesc::klass_at_if_loaded(cp, index);
|
||||
if (k == NULL) return NULL;
|
||||
return (jclass) JNIHandles::make_local(k->klass_part()->java_mirror());
|
||||
return (jclass) JNIHandles::make_local(k->java_mirror());
|
||||
}
|
||||
JVM_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue