src/share/vm/services/threadService.cpp

changeset 3202
436b4a3231bf
parent 2497
3582bf76420e
child 3381
8a63c6323842
     1.1 --- a/src/share/vm/services/threadService.cpp	Mon Oct 10 21:01:36 2011 -0400
     1.2 +++ b/src/share/vm/services/threadService.cpp	Thu Oct 13 09:35:42 2011 -0700
     1.3 @@ -751,7 +751,7 @@
     1.4        _blocker_object = obj();
     1.5        JavaThread* owner = ObjectSynchronizer::get_lock_owner(obj, false);
     1.6        if ((owner == NULL && _thread_status == java_lang_Thread::BLOCKED_ON_MONITOR_ENTER)
     1.7 -          || (owner != NULL && owner->is_attaching())) {
     1.8 +          || (owner != NULL && owner->is_attaching_via_jni())) {
     1.9          // ownership information of the monitor is not available
    1.10          // (may no longer be owned or releasing to some other thread)
    1.11          // make this thread in RUNNABLE state.
    1.12 @@ -899,7 +899,7 @@
    1.13      }
    1.14  
    1.15      // skip jni threads in the process of attaching
    1.16 -    if (!include_jni_attaching_threads && jt->is_attaching()) {
    1.17 +    if (!include_jni_attaching_threads && jt->is_attaching_via_jni()) {
    1.18        continue;
    1.19      }
    1.20  

mercurial