equal
deleted
inserted
replaced
72 if (caller != NULL) { |
72 if (caller != NULL) { |
73 const char * from = caller->external_name(); |
73 const char * from = caller->external_name(); |
74 const char * to = to_class->external_name(); |
74 const char * to = to_class->external_name(); |
75 // print in a single call to reduce interleaving between threads |
75 // print in a single call to reduce interleaving between threads |
76 if (source_file != NULL) { |
76 if (source_file != NULL) { |
77 tty->print("RESOLVE %s %s %s:%d (reflection)\n", from, to, source_file, line_number); |
77 log_info(classresolve)("%s %s %s:%d (reflection)", from, to, source_file, line_number); |
78 } else { |
78 } else { |
79 tty->print("RESOLVE %s %s (reflection)\n", from, to); |
79 log_info(classresolve)("%s %s (reflection)", from, to); |
80 } |
80 } |
81 } |
81 } |
82 } |
82 } |
83 |
83 |
84 |
84 |
597 const Klass* k = SystemDictionary::resolve_or_fail(name, |
597 const Klass* k = SystemDictionary::resolve_or_fail(name, |
598 Handle(THREAD, loader), |
598 Handle(THREAD, loader), |
599 Handle(THREAD, protection_domain), |
599 Handle(THREAD, protection_domain), |
600 true, |
600 true, |
601 CHECK_NULL); |
601 CHECK_NULL); |
602 if (TraceClassResolution) { |
602 if (log_is_enabled(Info, classresolve)) { |
603 trace_class_resolution(k); |
603 trace_class_resolution(k); |
604 } |
604 } |
605 return k->java_mirror(); |
605 return k->java_mirror(); |
606 } |
606 } |
607 |
607 |
652 SystemDictionary::resolve_or_fail(signature, |
652 SystemDictionary::resolve_or_fail(signature, |
653 Handle(THREAD, k->class_loader()), |
653 Handle(THREAD, k->class_loader()), |
654 Handle(THREAD, k->protection_domain()), |
654 Handle(THREAD, k->protection_domain()), |
655 true, CHECK_(Handle())); |
655 true, CHECK_(Handle())); |
656 |
656 |
657 if (TraceClassResolution) { |
657 if (log_is_enabled(Info, classresolve)) { |
658 trace_class_resolution(result); |
658 trace_class_resolution(result); |
659 } |
659 } |
660 |
660 |
661 oop nt = result->java_mirror(); |
661 oop nt = result->java_mirror(); |
662 return Handle(THREAD, nt); |
662 return Handle(THREAD, nt); |