Home | History | Annotate | Download | only in vm

Lines Matching refs:thread

42     Thread* self = dvmThreadSelf();
164 Thread* self = dvmThreadSelf();
167 LOGE("ERROR: DDM broadcast with thread status=%d", self->status);
218 * Turn thread notification on or off.
223 * We lock the thread list to avoid sending duplicate events or missing
224 * a thread change. We should be okay holding this lock while sending
225 * the messages out. (We have to hold it while accessing a live thread.)
231 Thread* thread;
232 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) {
233 //LOGW("notify %d", thread->threadId);
234 dvmDdmSendThreadNotification(thread, true);
242 * Send a notification when a thread starts or stops.
245 * first enabled, it's possible for "thread" to be actively executing.
247 void dvmDdmSendThreadNotification(Thread* thread, bool started)
254 Object* threadObj = thread->threadObj;
285 set4BE(&buf[0x00], thread->threadId);
298 set4BE(&buf[0x00], thread->threadId);
305 * Send a notification when a thread's name changes.
318 * (4b) thread ID
342 * (2b) thread count
343 * Then, for each thread:
345 * (1b) thread status
366 Thread* thread;
368 for (thread = gDvm.threadList; thread != NULL; thread = thread->next)
373 * the thread list lock held (could cause a GC). The output is small
385 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) {
389 if (!dvmGetThreadStats(&procStatData, thread->systemTid)) {
394 Object* threadObj = thread->threadObj;
400 set4BE(buf+0, thread->threadId);
401 set1(buf+4, thread->status);
402 set4BE(buf+5, thread->systemTid);
423 * Find the specified thread and return its stack trace as an array of
428 Thread* self = dvmThreadSelf();
429 Thread* thread;
434 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) {
435 if (thread->threadId == threadId)
438 if (thread == NULL) {
445 * Suspend the thread, pull out the stack trace, then resume the thread
446 * and release the thread list lock. If we're being asked to examine
450 if (thread != self)
451 dvmSuspendThread(thread);
452 traceBuf = dvmFillInStackTraceRaw(thread, &stackDepth);
453 if (thread != self)
454 dvmResumeThread(thread);