equal
deleted
inserted
replaced
714 for (int i = len-1; i >= 0; i--) { |
714 for (int i = len-1; i >= 0; i--) { |
715 methodHandle m(THREAD, methods()->at(i)); |
715 methodHandle m(THREAD, methods()->at(i)); |
716 |
716 |
717 // Set up method entry points for compiler and interpreter . |
717 // Set up method entry points for compiler and interpreter . |
718 m->link_method(m, CHECK); |
718 m->link_method(m, CHECK); |
719 |
|
720 // This is for JVMTI and unrelated to relocator but the last thing we do |
|
721 #ifdef ASSERT |
|
722 if (StressMethodComparator) { |
|
723 ResourceMark rm(THREAD); |
|
724 static int nmc = 0; |
|
725 for (int j = i; j >= 0 && j >= i-4; j--) { |
|
726 if ((++nmc % 1000) == 0) tty->print_cr("Have run MethodComparator %d times...", nmc); |
|
727 bool z = MethodComparator::methods_EMCP(m(), |
|
728 methods()->at(j)); |
|
729 if (j == i && !z) { |
|
730 tty->print("MethodComparator FAIL: "); m->print(); m->print_codes(); |
|
731 assert(z, "method must compare equal to itself"); |
|
732 } |
|
733 } |
|
734 } |
|
735 #endif //ASSERT |
|
736 } |
719 } |
737 } |
720 } |
738 |
721 |
739 // Eagerly initialize superinterfaces that declare default methods (concrete instance: any access) |
722 // Eagerly initialize superinterfaces that declare default methods (concrete instance: any access) |
740 void InstanceKlass::initialize_super_interfaces(instanceKlassHandle this_k, TRAPS) { |
723 void InstanceKlass::initialize_super_interfaces(instanceKlassHandle this_k, TRAPS) { |