mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6790209: server VM fails with assert(will_link,"_new: typeflow responsibility")
Add missing code for reflection class loader in SystemDictionary::find(). Reviewed-by: never, jrose
This commit is contained in:
parent
532cc3cef8
commit
a23ea7296a
1 changed files with 6 additions and 0 deletions
|
@ -841,6 +841,12 @@ klassOop SystemDictionary::find(symbolHandle class_name,
|
||||||
Handle protection_domain,
|
Handle protection_domain,
|
||||||
TRAPS) {
|
TRAPS) {
|
||||||
|
|
||||||
|
// UseNewReflection
|
||||||
|
// The result of this call should be consistent with the result
|
||||||
|
// of the call to resolve_instance_class_or_null().
|
||||||
|
// See evaluation 6790209 and 4474172 for more details.
|
||||||
|
class_loader = Handle(THREAD, java_lang_ClassLoader::non_reflection_class_loader(class_loader()));
|
||||||
|
|
||||||
unsigned int d_hash = dictionary()->compute_hash(class_name, class_loader);
|
unsigned int d_hash = dictionary()->compute_hash(class_name, class_loader);
|
||||||
int d_index = dictionary()->hash_to_index(d_hash);
|
int d_index = dictionary()->hash_to_index(d_hash);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue