mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8217348: assert(thread->is_Java_thread()) failed: just checking
Reviewed-by: sspitsyn, dholmes, amenkov, jcbeyler
This commit is contained in:
parent
c7df05efea
commit
6ad0d8a6c7
1 changed files with 1 additions and 1 deletions
|
@ -1083,7 +1083,7 @@ JvmtiEnvBase::get_object_monitor_usage(JavaThread* calling_thread, jobject objec
|
||||||
// If the monitor has no owner, then a non-suspended contending
|
// If the monitor has no owner, then a non-suspended contending
|
||||||
// thread could potentially change the state of the monitor by
|
// thread could potentially change the state of the monitor by
|
||||||
// entering it. The JVM/TI spec doesn't allow this.
|
// entering it. The JVM/TI spec doesn't allow this.
|
||||||
if (owning_thread == NULL && !at_safepoint &
|
if (owning_thread == NULL && !at_safepoint &&
|
||||||
!pending_thread->is_thread_fully_suspended(true, &debug_bits)) {
|
!pending_thread->is_thread_fully_suspended(true, &debug_bits)) {
|
||||||
if (ret.owner != NULL) {
|
if (ret.owner != NULL) {
|
||||||
destroy_jni_reference(calling_thread, ret.owner);
|
destroy_jni_reference(calling_thread, ret.owner);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue