equal
deleted
inserted
replaced
1640 assert(Threads_lock->owned_by_self(), "Must hold Threads_lock"); |
1640 assert(Threads_lock->owned_by_self(), "Must hold Threads_lock"); |
1641 assert(thread != NULL, "thread was NULL"); |
1641 assert(thread != NULL, "thread was NULL"); |
1642 |
1642 |
1643 // exclude externally visible JavaThreads |
1643 // exclude externally visible JavaThreads |
1644 if (thread->is_Java_thread() && !thread->is_hidden_from_external_view()) { |
1644 if (thread->is_Java_thread() && !thread->is_hidden_from_external_view()) { |
1645 return; |
|
1646 } |
|
1647 |
|
1648 // NonJavaThread instances may not be fully initialized yet, so we need to |
|
1649 // skip any that aren't - check for zero stack_size() |
|
1650 if (!thread->is_Java_thread() && thread->stack_size() == 0) { |
|
1651 return; |
1645 return; |
1652 } |
1646 } |
1653 |
1647 |
1654 if (_count >= _names_len || _count >= _times_len) { |
1648 if (_count >= _names_len || _count >= _times_len) { |
1655 // skip if the result array is not big enough |
1649 // skip if the result array is not big enough |