8005521: StressMethodComparator is not thread-safe
Remove the debug option. It isn't correct or tested. Reviewed-by: gtriantafill, dholmes, sspitsyn
This commit is contained in:
parent
15f8d6fc9c
commit
01893ae525
@ -716,23 +716,6 @@ void InstanceKlass::link_methods(TRAPS) {
|
||||
|
||||
// Set up method entry points for compiler and interpreter .
|
||||
m->link_method(m, CHECK);
|
||||
|
||||
// This is for JVMTI and unrelated to relocator but the last thing we do
|
||||
#ifdef ASSERT
|
||||
if (StressMethodComparator) {
|
||||
ResourceMark rm(THREAD);
|
||||
static int nmc = 0;
|
||||
for (int j = i; j >= 0 && j >= i-4; j--) {
|
||||
if ((++nmc % 1000) == 0) tty->print_cr("Have run MethodComparator %d times...", nmc);
|
||||
bool z = MethodComparator::methods_EMCP(m(),
|
||||
methods()->at(j));
|
||||
if (j == i && !z) {
|
||||
tty->print("MethodComparator FAIL: "); m->print(); m->print_codes();
|
||||
assert(z, "method must compare equal to itself");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif //ASSERT
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1342,9 +1342,6 @@ class CommandLineFlags {
|
||||
product(intx, TraceRedefineClasses, 0, \
|
||||
"Trace level for JVMTI RedefineClasses") \
|
||||
\
|
||||
develop(bool, StressMethodComparator, false, \
|
||||
"Run the MethodComparator on all loaded methods") \
|
||||
\
|
||||
/* change to false by default sometime after Mustang */ \
|
||||
product(bool, VerifyMergedCPBytecodes, true, \
|
||||
"Verify bytecodes after RedefineClasses constant pool merging") \
|
||||
|
Loading…
x
Reference in New Issue
Block a user