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:
Coleen Phillimore 2017-05-27 09:21:01 -04:00
parent f1f868513d
commit 6659245612
40 changed files with 800 additions and 383 deletions

View file

@ -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) {