Lines Matching refs:thread
83 static void visitThreadStack(RootVisitor *visitor, Thread *thread, void *arg)
86 assert(thread != NULL);
87 u4 threadId = thread->threadId;
89 for (u4 *fp = (u4 *)thread->interpSave.curFrame;
160 * Visits all roots associated with a thread.
162 static void visitThread(RootVisitor *visitor, Thread *thread, void *arg)
167 assert(thread != NULL);
168 threadId = thread->threadId;
169 (*visitor)(&thread->threadObj, threadId, ROOT_THREAD_OBJECT, arg);
170 (*visitor)(&thread->exception, threadId, ROOT_NATIVE_STACK, arg);
171 visitReferenceTable(visitor, &thread->internalLocalRefTable, threadId, ROOT_NATIVE_STACK, arg);
172 visitIndirectRefTable(visitor, &thread->jniLocalRefTable, threadId, ROOT_JNI_LOCAL, arg);
173 if (thread->jniMonitorRefTable.table != NULL) {
174 visitReferenceTable(visitor, &thread->jniMonitorRefTable, threadId, ROOT_JNI_MONITOR, arg);
176 visitThreadStack(visitor, thread, arg);
180 * Visits all threads on the thread list.
184 Thread *thread;
188 thread = gDvm.threadList;
189 while (thread) {
190 visitThread(visitor, thread, arg);
191 thread = thread->next;