mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8174749: Use hash table/oops for MemberName table
Add a Java type called ResolvedMethodName which is immutable and can be stored in a hashtable, that is weakly collected by gc Reviewed-by: sspitsyn, stefank, jrose
This commit is contained in:
parent
f1f868513d
commit
6659245612
40 changed files with 800 additions and 383 deletions
|
@ -143,7 +143,11 @@ inline bool java_lang_invoke_MethodHandleNatives_CallSiteContext::is_instance(oo
|
|||
}
|
||||
|
||||
inline bool java_lang_invoke_MemberName::is_instance(oop obj) {
|
||||
return obj != NULL && is_subclass(obj->klass());
|
||||
return obj != NULL && obj->klass() == SystemDictionary::MemberName_klass();
|
||||
}
|
||||
|
||||
inline bool java_lang_invoke_ResolvedMethodName::is_instance(oop obj) {
|
||||
return obj != NULL && obj->klass() == SystemDictionary::ResolvedMethodName_klass();
|
||||
}
|
||||
|
||||
inline bool java_lang_invoke_MethodType::is_instance(oop obj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue