src/share/vm/runtime/thread.cpp
Print this page
*** 4283,4293 ****
ALL_JAVA_THREADS(p) {
// first, see if owner is the address of a Java thread
if (owner == (address)p) return p;
}
}
! assert(UseHeavyMonitors == false, "Did not find owning Java thread with UseHeavyMonitors enabled");
if (UseHeavyMonitors) return NULL;
//
// If we didn't find a matching Java thread and we didn't force use of
// heavyweight monitors, then the owner is the stack address of the
--- 4283,4295 ----
ALL_JAVA_THREADS(p) {
// first, see if owner is the address of a Java thread
if (owner == (address)p) return p;
}
}
! // Cannot assert on lack of success here since this function may be
! // used by code that is trying to report useful problem information
! // like deadlock detection.
if (UseHeavyMonitors) return NULL;
//
// If we didn't find a matching Java thread and we didn't force use of
// heavyweight monitors, then the owner is the stack address of the
*** 4301,4311 ****
the_owner = q;
break;
}
}
}
! assert(the_owner != NULL, "Did not find owning Java thread for lock word address");
return the_owner;
}
// Threads::print_on() is called at safepoint by VM_PrintThreads operation.
void Threads::print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks) {
--- 4303,4313 ----
the_owner = q;
break;
}
}
}
! // cannot assert on lack of success here; see above comment
return the_owner;
}
// Threads::print_on() is called at safepoint by VM_PrintThreads operation.
void Threads::print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks) {