/dalvik/vm/ |
D | Thread.cpp | 234 static bool prepareThread(Thread* thread); 235 static void setThreadSelf(Thread* thread); 236 static void unlinkThread(Thread* thread); 237 static void freeThread(Thread* thread); 238 static void assignThreadId(Thread* thread); 239 static bool createFakeEntryFrame(Thread* thread); 240 static bool createFakeRunFrame(Thread* thread); 243 static void threadExitUncaughtException(Thread* thread, Object* group); 245 static void waitForThreadSuspend(Thread* self, Thread* thread); 254 Thread* thread; in dvmThreadStartup() local [all …]
|
D | Ddm.cpp | 231 Thread* thread; in dvmDdmSetThreadNotification() local 232 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in dvmDdmSetThreadNotification() 234 dvmDdmSendThreadNotification(thread, true); in dvmDdmSetThreadNotification() 247 void dvmDdmSendThreadNotification(Thread* thread, bool started) in dvmDdmSendThreadNotification() argument 254 Object* threadObj = thread->threadObj; in dvmDdmSendThreadNotification() 285 set4BE(&buf[0x00], thread->threadId); in dvmDdmSendThreadNotification() 298 set4BE(&buf[0x00], thread->threadId); in dvmDdmSendThreadNotification() 366 Thread* thread; in dvmDdmGenerateThreadStats() local 368 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) in dvmDdmGenerateThreadStats() 385 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in dvmDdmGenerateThreadStats() [all …]
|
D | Sync.cpp | 184 bool dvmHoldsLock(Thread* thread, Object* obj) in dvmHoldsLock() argument 186 if (thread == NULL || obj == NULL) { in dvmHoldsLock() 189 return thread->threadId == lockOwner(obj); in dvmHoldsLock() 495 static void waitSetAppend(Monitor *mon, Thread *thread) in waitSetAppend() argument 501 assert(thread != NULL); in waitSetAppend() 502 assert(thread->waitNext == NULL); in waitSetAppend() 505 mon->waitSet = thread; in waitSetAppend() 512 elt->waitNext = thread; in waitSetAppend() 519 static void waitSetRemove(Monitor *mon, Thread *thread) in waitSetRemove() argument 525 assert(thread != NULL); in waitSetRemove() [all …]
|
D | Profile.cpp | 121 static inline u8 getThreadCpuTimeInUsec(Thread* thread) in getThreadCpuTimeInUsec() argument 125 pthread_getcpuclockid(thread->handle, &cid); in getThreadCpuTimeInUsec() 178 static const Method** getStackTrace(Thread* thread, size_t* pCount) in getStackTrace() argument 180 void* fp = thread->interpSave.curFrame; in getStackTrace() 181 assert(thread == dvmThreadSelf() || dvmIsSuspended(thread)); in getStackTrace() 207 fp = thread->interpSave.curFrame; in getStackTrace() 226 static void getSample(Thread* thread) in getSample() argument 230 const Method** newStackTrace = getStackTrace(thread, &newLength); in getSample() 231 size_t oldLength = thread->stackTraceSampleLength; in getSample() 232 const Method** oldStackTrace = thread->stackTraceSample; in getSample() [all …]
|
D | Thread.h | 373 void dvmSuspendThread(Thread* thread); 375 void dvmResumeThread(Thread* thread); 383 bool dvmIsSuspended(const Thread* thread); 388 void dvmWaitForSuspend(Thread* thread); 549 std::string dvmGetThreadName(Thread* thread); 560 bool dvmIsOnThreadList(const Thread* thread); 571 void dvmChangeThreadPriority(Thread* thread, int newPriority); 582 int dvmRaiseThreadPriorityIfNeeded(Thread* thread, int* pSavedThreadPrio, 589 void dvmResetThreadPriority(Thread* thread, int changeFlags, 595 void dvmDumpThread(Thread* thread, bool isRunning); [all …]
|
D | Debugger.cpp | 1700 Thread* thread; in threadObjToThread() local 1702 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in threadObjToThread() 1703 if (thread->threadObj == threadObj) in threadObjToThread() 1707 return thread; in threadObjToThread() 1717 Thread* thread; in dvmDbgGetThreadStatus() local 1726 thread = threadObjToThread(threadObj); in dvmDbgGetThreadStatus() 1727 if (thread == NULL) in dvmDbgGetThreadStatus() 1730 switch (thread->status) { in dvmDbgGetThreadStatus() 1747 if (dvmIsSuspended(thread)) in dvmDbgGetThreadStatus() 1765 Thread* thread; in dvmDbgGetThreadSuspendCount() local [all …]
|
D | Exception.h | 187 void* dvmFillInStackTraceInternal(Thread* thread, bool wantObject, size_t* pCount); 189 INLINE Object* dvmFillInStackTrace(Thread* thread) { in dvmFillInStackTrace() argument 190 return (Object*) dvmFillInStackTraceInternal(thread, true, NULL); in dvmFillInStackTrace() 194 INLINE int* dvmFillInStackTraceRaw(Thread* thread, size_t* pCount) { in dvmFillInStackTraceRaw() argument 195 return (int*) dvmFillInStackTraceInternal(thread, false, pCount); in dvmFillInStackTraceRaw()
|
/dalvik/vm/native/ |
D | java_lang_VMThread.cpp | 61 Thread* thread; in Dalvik_java_lang_VMThread_getStatus() local 65 thread = dvmGetThreadFromThreadObject(thisPtr); in Dalvik_java_lang_VMThread_getStatus() 66 if (thread != NULL) in Dalvik_java_lang_VMThread_getStatus() 67 result = thread->status; in Dalvik_java_lang_VMThread_getStatus() 85 Thread* thread; in Dalvik_java_lang_VMThread_holdsLock() local 93 thread = dvmGetThreadFromThreadObject(thisPtr); in Dalvik_java_lang_VMThread_holdsLock() 94 int result = dvmHoldsLock(thread, object); in Dalvik_java_lang_VMThread_holdsLock() 108 Thread* thread; in Dalvik_java_lang_VMThread_interrupt() local 111 thread = dvmGetThreadFromThreadObject(thisPtr); in Dalvik_java_lang_VMThread_interrupt() 112 if (thread != NULL) in Dalvik_java_lang_VMThread_interrupt() [all …]
|
D | dalvik_system_VMStack.cpp | 138 Thread* thread; in getTraceBuf() local 148 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in getTraceBuf() 149 if (thread->threadObj == targetThreadObj) in getTraceBuf() 152 if (thread == NULL) { in getTraceBuf() 164 if (thread != self) in getTraceBuf() 165 dvmSuspendThread(thread); in getTraceBuf() 166 traceBuf = dvmFillInStackTraceRaw(thread, pStackDepth); in getTraceBuf() 167 if (thread != self) in getTraceBuf() 168 dvmResumeThread(thread); in getTraceBuf()
|
/dalvik/vm/interp/ |
D | Interp.h | 40 void dvmInterpret(Thread* thread, const Method* method, JValue* pResult); 64 bool dvmAddSingleStep(Thread* thread, int size, int depth); 65 void dvmClearSingleStep(Thread* thread); 90 void dvmDisableSubMode(Thread* thread, ExecutionSubModes subMode); 91 extern "C" void dvmEnableSubMode(Thread* thread, ExecutionSubModes subMode); 94 void dvmAddToSuspendCounts(Thread* thread, int delta, int dbgDelta); 96 void dvmInitializeInterpBreak(Thread* thread); 108 void dvmArmSafePointCallback(Thread* thread, SafePointCallback funct,
|
D | Interp.cpp | 503 bool dvmAddSingleStep(Thread* thread, int size, int depth) in dvmAddSingleStep() argument 507 if (pCtrl->active && thread != pCtrl->thread) { in dvmAddSingleStep() 509 pCtrl->thread, thread); in dvmAddSingleStep() 524 pCtrl->thread = thread; in dvmAddSingleStep() 543 for (fp = thread->interpSave.curFrame; fp != NULL; in dvmAddSingleStep() 556 thread->threadId); in dvmAddSingleStep() 592 dvmComputeVagueFrameDepth(thread, thread->interpSave.curFrame); in dvmAddSingleStep() 596 pCtrl->thread, pCtrl->method, pCtrl->method->name, in dvmAddSingleStep() 607 void dvmClearSingleStep(Thread* thread) in dvmClearSingleStep() argument 609 UNUSED_PARAMETER(thread); in dvmClearSingleStep() [all …]
|
D | Stack.h | 178 bool dvmInitInterpStack(Thread* thread, int stackSize); 184 bool dvmPushJNIFrame(Thread* thread, const Method* method); 189 bool dvmPushLocalFrame(Thread* thread, const Method* method); 190 bool dvmPopLocalFrame(Thread* thread); 235 int dvmComputeVagueFrameDepth(Thread* thread, const void* fp); 276 void dvmDumpThreadStack(const DebugOutputTarget* target, Thread* thread); 277 void dvmDumpRunningThreadStack(const DebugOutputTarget* target, Thread* thread);
|
D | Stack.cpp | 38 bool dvmInitInterpStack(Thread* thread, int stackSize) in dvmInitInterpStack() argument 40 assert(thread->interpStackStart != NULL); in dvmInitInterpStack() 42 assert(thread->interpSave.curFrame == NULL); in dvmInitInterpStack() 861 int dvmComputeVagueFrameDepth(Thread* thread, const void* fp) in dvmComputeVagueFrameDepth() argument 863 const u1* interpStackStart = thread->interpStackStart; in dvmComputeVagueFrameDepth() 865 assert((u1*) fp >= interpStackStart - thread->interpStackSize); in dvmComputeVagueFrameDepth() 1089 static bool extractMonitorEnterObject(Thread* thread, Object** pLockObj, in extractMonitorEnterObject() argument 1092 void* framePtr = thread->interpSave.curFrame; in extractMonitorEnterObject() 1157 Thread* thread) in printWaitMessage() argument 1167 if (thread != NULL) { in printWaitMessage() [all …]
|
/dalvik/vm/alloc/ |
D | Visit.cpp | 83 static void visitThreadStack(RootVisitor *visitor, Thread *thread, void *arg) in visitThreadStack() argument 86 assert(thread != NULL); in visitThreadStack() 87 u4 threadId = thread->threadId; in visitThreadStack() 89 for (u4 *fp = (u4 *)thread->interpSave.curFrame; in visitThreadStack() 162 static void visitThread(RootVisitor *visitor, Thread *thread, void *arg) in visitThread() argument 167 assert(thread != NULL); in visitThread() 168 threadId = thread->threadId; in visitThread() 169 (*visitor)(&thread->threadObj, threadId, ROOT_THREAD_OBJECT, arg); in visitThread() 170 (*visitor)(&thread->exception, threadId, ROOT_NATIVE_STACK, arg); in visitThread() 171 visitReferenceTable(visitor, &thread->internalLocalRefTable, threadId, ROOT_NATIVE_STACK, arg); in visitThread() [all …]
|
D | Copying.cpp | 1513 static void scavengeThreadStack(Thread *thread) in scavengeThreadStack() argument 1520 framePtr = (const u4 *)thread->interpSave.curFrame; in scavengeThreadStack() 1573 if (saveArea->xtra.currentPc != thread->currentPc2) { in scavengeThreadStack() 1575 saveArea->xtra.currentPc, thread->currentPc2, in scavengeThreadStack() 1579 if (thread->currentPc2 != NULL) in scavengeThreadStack() 1580 ALOGE(" pc2 inst = 0x%04x", *thread->currentPc2); in scavengeThreadStack() 1581 dvmDumpThread(thread, false); in scavengeThreadStack() 1711 static void scavengeThread(Thread *thread) in scavengeThread() argument 1716 scavengeReference(&thread->threadObj); in scavengeThread() 1719 scavengeReference(&thread->exception); in scavengeThread() [all …]
|
/dalvik/tests/051-thread/src/ |
D | Main.java | 31 for (MyThread thread : threads) { in main() 32 thread.start(); in main() 34 for (MyThread thread : threads) { in main() 35 thread.join(); in main()
|
/dalvik/tests/051-thread/ |
D | expected.txt | 3 Starting thread 'Thready' 8 thread test done
|
/dalvik/tests/084-class-init/ |
D | expected.txt | 8 Fields (child thread): 111222333444 9 Fields (main thread): 111222333444
|
/dalvik/vm/compiler/ |
D | Compiler.cpp | 238 static void crawlDalvikStack(Thread *thread, bool print) in crawlDalvikStack() argument 240 void *fp = thread->interpSave.curFrame; in crawlDalvikStack() 245 ALOGD("Crawling tid %d (%s / %p %s)", thread->systemTid, in crawlDalvikStack() 246 dvmGetThreadStatusStr(thread->status), in crawlDalvikStack() 247 thread->inJitCodeCache, in crawlDalvikStack() 248 thread->inJitCodeCache ? "jit" : "interp"); in crawlDalvikStack() 276 (u1 *) (saveArea+1) == thread->interpStackStart); in crawlDalvikStack() 281 Thread* thread; in resetCodeCache() local 288 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in resetCodeCache() 295 crawlDalvikStack(thread, false); in resetCodeCache() [all …]
|
/dalvik/hit/src/com/android/hit/ |
D | StackTrace.java | 37 public StackTrace(int serial, int thread, StackFrame[] frames) { in StackTrace() argument 39 mThreadSerialNumber = thread; in StackTrace()
|
D | HprofParser.java | 356 ThreadObj thread = mState.getThread(threadSerialNumber); in loadJniLocal() local 357 StackTrace trace = mState.getStackTraceAtDepth(thread.mStackTrace, in loadJniLocal() 372 ThreadObj thread = mState.getThread(threadSerialNumber); in loadJavaFrame() local 373 StackTrace trace = mState.getStackTraceAtDepth(thread.mStackTrace, in loadJavaFrame() 387 ThreadObj thread = mState.getThread(threadSerialNumber); in loadNativeStack() local 388 StackTrace trace = mState.getStackTrace(thread.mStackTrace); in loadNativeStack() 411 ThreadObj thread = mState.getThread(threadSerialNumber); in loadThreadBlock() local 412 StackTrace stack = mState.getStackTrace(thread.mStackTrace); in loadThreadBlock() 426 ThreadObj thread = new ThreadObj(id, stackSerialNumber); in loadThreadObject() local 428 mState.addThread(thread, threadSerialNumber); in loadThreadObject() [all …]
|
/dalvik/vm/os/ |
D | android.cpp | 48 void os_changeThreadPriority(Thread* thread, int newPriority) in os_changeThreadPriority() argument 56 pid_t pid = thread->systemTid; in os_changeThreadPriority() 65 std::string threadName(dvmGetThreadName(thread)); in os_changeThreadPriority()
|
D | linux.cpp | 31 void os_changeThreadPriority(Thread* thread, int newPriority) in os_changeThreadPriority() argument
|
D | os.h | 42 void os_changeThreadPriority(Thread* thread, int newPriority);
|
/dalvik/tests/067-preemptive-unpark/ |
D | expected.txt | 3 Asking thread to park
|