mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code
Reviewed-by: coleenp, pchilanomate, dcubed, cjplummer, sspitsyn
This commit is contained in:
parent
57f16f9fe5
commit
c6d74bd933
18 changed files with 470 additions and 521 deletions
|
@ -1079,13 +1079,12 @@ JvmtiEnvBase::get_object_monitor_usage(JavaThread* calling_thread, jobject objec
|
|||
nWait = j;
|
||||
break;
|
||||
}
|
||||
Thread *t = mon->thread_of_waiter(waiter);
|
||||
if (t != NULL && t->is_Java_thread()) {
|
||||
JavaThread *wjava_thread = t->as_Java_thread();
|
||||
JavaThread *w = mon->thread_of_waiter(waiter);
|
||||
if (w != NULL) {
|
||||
// If the thread was found on the ObjectWaiter list, then
|
||||
// it has not been notified. This thread can't change the
|
||||
// state of the monitor so it doesn't need to be suspended.
|
||||
Handle th(current_thread, wjava_thread->threadObj());
|
||||
Handle th(current_thread, w->threadObj());
|
||||
ret.waiters[offset + j] = (jthread)jni_reference(calling_thread, th);
|
||||
ret.notify_waiters[j++] = (jthread)jni_reference(calling_thread, th);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue