jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/ThreadManager.cpp
ThreadInfo(JNIEnv *jni, jthread thrd, bool isAgentThrd = false, bool isOnEvent = false)
        {
            m_thread = jni->NewGlobalRef(thrd);
            if (m_thread == 0) {
                JDWP_TRACE(LOG_RELEASE, (LOG_ERROR_FL, "Unable to allocate new global ref for ThreadInfo"));
            }
            m_isAgentThread = isAgentThrd;
            m_isOnEvent = isOnEvent;
            m_suspendCount = 0;
            m_threadName = 0;
            m_isAlive = 1;
        }
/**
         * A constructor.
         * Creates new instance.
         * @param jni the JNI interface pointer.
         * @param thrd java thread.
         * @param isAgentThrd indicates whether thread is internal agent's or traget VM's.
         * @param isOnEvent on event thread suspension.
         */
A constructor.
Creates new instance.
@param jni the JNI interface pointer.
@param thrd java thread.
@param isAgentThrd indicates whether thread is internal agent's or traget VM's.
@param isOnEvent on event thread suspension.
A constructor . Creates new instance . @param jni the JNI interface pointer . @param thrd java thread . @param isAgentThrd indicates whether thread is internal agent ' s or traget VM ' s . @param isOnEvent on event thread suspension .
ThreadInfo(JNIEnv *jni, jthread thrd, bool isAgentThrd = false, bool isOnEvent = false)
        {
            m_thread = jni->NewGlobalRef(thrd);
            if (m_thread == 0) {
                JDWP_TRACE(LOG_RELEASE, (LOG_ERROR_FL, "Unable to allocate new global ref for ThreadInfo"));
            }
            m_isAgentThread = isAgentThrd;
            m_isOnEvent = isOnEvent;
            m_suspendCount = 0;
            m_threadName = 0;
            m_isAlive = 1;
        }
ThreadInfo ( JNIEnv * jni , jthread thrd , bool isAgentThrd = false , bool isOnEvent = false ) { m_thread = jni -> NewGlobalRef ( thrd ) ; if ( m_thread == 0 ) { JDWP_TRACE ( LOG_RELEASE , ( LOG_ERROR_FL , " " ) ) ; } m_isAgentThread = isAgentThrd ; m_isOnEvent = isOnEvent ; m_suspendCount = 0 ; m_threadName = 0 ; m_isAlive = 1 ; }
A constructor.
A constructor .