--- old/src/share/vm/oops/instanceKlass.cpp 2014-12-17 11:50:53.897592000 -0500 +++ new/src/share/vm/oops/instanceKlass.cpp 2014-12-17 11:50:53.005575000 -0500 @@ -3543,11 +3543,13 @@ ("purge: %s(%s): prev method @%d in version @%d is alive", method->name()->as_C_string(), method->signature()->as_C_string(), j, version)); +#ifdef ASSERT if (method->method_data() != NULL) { // Clean out any weak method links for running methods // (also should include not EMCP methods) - method->method_data()->clean_weak_method_links(); + method->method_data()->verify_clean_weak_method_links(); } +#endif // ASSERT } } } @@ -3561,15 +3563,17 @@ deleted_count)); } - // Clean MethodData of this class's methods so they don't refer to +#ifdef ASSERT + // Verify clean MethodData of this class's methods so they don't refer to // old methods that are no longer running. Array* methods = ik->methods(); int num_methods = methods->length(); for (int index2 = 0; index2 < num_methods; ++index2) { if (methods->at(index2)->method_data() != NULL) { - methods->at(index2)->method_data()->clean_weak_method_links(); + methods->at(index2)->method_data()->verify_clean_weak_method_links(); } } +#endif // ASSERT } void InstanceKlass::mark_newly_obsolete_methods(Array* old_methods,