jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/ThreadManager.cpp
void FindJavaThreadInfo(JNIEnv *jni, JavaThreadInfoList *javathrdInfoList, jthread thread,
        JavaThreadInfoList::iterator &result)
    {
        for (; result.hasNext();) {
            JavaThreadInfo* element= result.getNext();
            if (element != 0 && 
                    jni->IsSameObject((element)->m_thread, thread) == JNI_TRUE){
                break;
            }
        }
    }
/**
     * Looks for corresponding Java thread info in the Java thread 
     * info list 
     * @param jni - the JNI interface pointer
     * @param javathrdInfoList - pointer to the Java thread info 
     *                         list
     * @param thread - the Java thread
     * @param result - iterator for the Java thread info list
     */
Looks for corresponding Java thread info in the Java thread
info list
@param jni - the JNI interface pointer
@param javathrdInfoList - pointer to the Java thread info
list
@param thread - the Java thread
@param result - iterator for the Java thread info list
Looks for corresponding Java thread info in the Java thread info list @param jni - the JNI interface pointer @param javathrdInfoList - pointer to the Java thread info list @param thread - the Java thread @param result - iterator for the Java thread info list
void FindJavaThreadInfo(JNIEnv *jni, JavaThreadInfoList *javathrdInfoList, jthread thread,
        JavaThreadInfoList::iterator &result)
    {
        for (; result.hasNext();) {
            JavaThreadInfo* element= result.getNext();
            if (element != 0 && 
                    jni->IsSameObject((element)->m_thread, thread) == JNI_TRUE){
                break;
            }
        }
    }
void FindJavaThreadInfo ( JNIEnv * jni , JavaThreadInfoList * javathrdInfoList , jthread thread , JavaThreadInfoList :: iterator & result ) { for ( ; result . hasNext ( ) ; ) { JavaThreadInfo * element = result . getNext ( ) ; if ( element != 0 && jni -> IsSameObject ( ( element ) -> m_thread , thread ) == JNI_TRUE ) { break ; } } }
Looks for corresponding Java thread info in the Java thread
 info list
 @param jni - the JNI interface pointer
 @param javathrdInfoList - pointer to the Java thread info
                         list
 @param thread - the Java thread
 @param result - iterator for the Java thread info list
Looks for corresponding Java thread info in the Java thread info list @param jni - the JNI interface pointer @param javathrdInfoList - pointer to the Java thread info list @param thread - the Java thread @param result - iterator for the Java thread info list