equal
deleted
inserted
replaced
4283 ALL_JAVA_THREADS(p) { |
4283 ALL_JAVA_THREADS(p) { |
4284 // first, see if owner is the address of a Java thread |
4284 // first, see if owner is the address of a Java thread |
4285 if (owner == (address)p) return p; |
4285 if (owner == (address)p) return p; |
4286 } |
4286 } |
4287 } |
4287 } |
4288 assert(UseHeavyMonitors == false, "Did not find owning Java thread with UseHeavyMonitors enabled"); |
4288 // Cannot assert on lack of success here since this function may be |
|
4289 // used by code that is trying to report useful problem information |
|
4290 // like deadlock detection. |
4289 if (UseHeavyMonitors) return NULL; |
4291 if (UseHeavyMonitors) return NULL; |
4290 |
4292 |
4291 // |
4293 // |
4292 // If we didn't find a matching Java thread and we didn't force use of |
4294 // If we didn't find a matching Java thread and we didn't force use of |
4293 // heavyweight monitors, then the owner is the stack address of the |
4295 // heavyweight monitors, then the owner is the stack address of the |
4301 the_owner = q; |
4303 the_owner = q; |
4302 break; |
4304 break; |
4303 } |
4305 } |
4304 } |
4306 } |
4305 } |
4307 } |
4306 assert(the_owner != NULL, "Did not find owning Java thread for lock word address"); |
4308 // cannot assert on lack of success here; see above comment |
4307 return the_owner; |
4309 return the_owner; |
4308 } |
4310 } |
4309 |
4311 |
4310 // Threads::print_on() is called at safepoint by VM_PrintThreads operation. |
4312 // Threads::print_on() is called at safepoint by VM_PrintThreads operation. |
4311 void Threads::print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks) { |
4313 void Threads::print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks) { |