/dalvik/vm/interp/ |
D | Stack.c | 59 static bool dvmPushInterpFrame(Thread* self, const Method* method) in dvmPushInterpFrame() argument 73 if (self->curFrame != NULL) in dvmPushInterpFrame() 74 stackPtr = (u1*) SAVEAREA_FROM_FP(self->curFrame); in dvmPushInterpFrame() 76 stackPtr = self->interpStackStart; in dvmPushInterpFrame() 78 if (stackPtr - stackReq < self->interpStackEnd) { in dvmPushInterpFrame() 82 stackReq, self->interpStackStart, self->curFrame, in dvmPushInterpFrame() 83 self->interpStackSize, method->clazz->descriptor, method->name); in dvmPushInterpFrame() 84 dvmHandleStackOverflow(self, method); in dvmPushInterpFrame() 85 assert(dvmCheckException(self)); in dvmPushInterpFrame() 103 breakSaveBlock->prevSave = FP_FROM_SAVEAREA(self->curFrame); in dvmPushInterpFrame() [all …]
|
D | Jit.c | 38 void* dvmSelfVerificationShadowSpaceAlloc(Thread* self) in dvmSelfVerificationShadowSpaceAlloc() argument 40 self->shadowSpace = (ShadowSpace*) calloc(1, sizeof(ShadowSpace)); in dvmSelfVerificationShadowSpaceAlloc() 41 if (self->shadowSpace == NULL) in dvmSelfVerificationShadowSpaceAlloc() 44 self->shadowSpace->registerSpaceSize = REG_SPACE; in dvmSelfVerificationShadowSpaceAlloc() 45 self->shadowSpace->registerSpace = in dvmSelfVerificationShadowSpaceAlloc() 46 (int*) calloc(self->shadowSpace->registerSpaceSize, sizeof(int)); in dvmSelfVerificationShadowSpaceAlloc() 48 return self->shadowSpace->registerSpace; in dvmSelfVerificationShadowSpaceAlloc() 52 void dvmSelfVerificationShadowSpaceFree(Thread* self) in dvmSelfVerificationShadowSpaceFree() argument 54 free(self->shadowSpace->registerSpace); in dvmSelfVerificationShadowSpaceFree() 55 free(self->shadowSpace); in dvmSelfVerificationShadowSpaceFree() [all …]
|
D | InterpDefs.h | 118 Thread* self; member 191 extern bool dvmInterpretDbg(Thread* self, InterpState* interpState); 192 extern bool dvmInterpretStd(Thread* self, InterpState* interpState); 199 extern bool dvmMterpStd(Thread* self, InterpState* interpState); 209 void dvmInterpCheckTrackedRefs(Thread* self, const Method* method,
|
/dalvik/vm/ |
D | Thread.c | 242 static void waitForThreadSuspend(Thread* self, Thread* thread); 484 void dvmLockThreadList(Thread* self) in dvmLockThreadList() argument 488 if (self == NULL) /* try to get it from TLS */ in dvmLockThreadList() 489 self = dvmThreadSelf(); in dvmLockThreadList() 491 if (self != NULL) { in dvmLockThreadList() 492 oldStatus = self->status; in dvmLockThreadList() 493 self->status = THREAD_VMWAIT; in dvmLockThreadList() 502 if (self != NULL) in dvmLockThreadList() 503 self->status = oldStatus; in dvmLockThreadList() 554 Thread* self = dvmThreadSelf(); in lockThreadSuspend() local [all …]
|
D | JniInternal.h | 44 Thread* self; member 105 INLINE void dvmPopJniLocals(Thread* self, StackSaveArea* saveArea) in dvmPopJniLocals() argument 108 self->jniLocalRefTable.segmentState.all = saveArea->xtra.localRefCookie; in dvmPopJniLocals() 110 self->jniLocalRefTable.nextEntry = saveArea->xtra.localRefCookie; in dvmPopJniLocals() 117 INLINE void dvmSetJniEnvThreadId(JNIEnv* pEnv, Thread* self) in dvmSetJniEnvThreadId() argument 119 ((JNIEnvExt*)pEnv)->envThreadId = self->threadId; in dvmSetJniEnvThreadId() 120 ((JNIEnvExt*)pEnv)->self = self; in dvmSetJniEnvThreadId() 129 const Method* method, Thread* self); 131 const Method* method, Thread* self); 133 const Method* method, Thread* self); [all …]
|
D | Sync.c | 66 static void updateDeadlockPrediction(Thread* self, Object* obj); 385 static void logContentionEvent(Thread *self, u4 waitMs, u4 samplePercent, in logContentionEvent() argument 398 saveArea = SAVEAREA_FROM_FP(self->curFrame); in logContentionEvent() 414 bool isMainThread = (self->systemTid == getpid()); in logContentionEvent() 418 selfName = dvmGetThreadName(self); in logContentionEvent() 459 static void lockMonitor(Thread* self, Monitor* mon) in lockMonitor() argument 465 if (mon->owner == self) { in lockMonitor() 470 oldStatus = dvmChangeStatus(self, THREAD_MONITOR); in lockMonitor() 482 dvmChangeStatus(self, oldStatus); in lockMonitor() 491 logContentionEvent(self, waitMs, samplePercent, in lockMonitor() [all …]
|
D | Exception.h | 92 INLINE Object* dvmGetException(Thread* self) { in dvmGetException() argument 93 return self->exception; in dvmGetException() 99 INLINE void dvmSetException(Thread* self, Object* exception) in dvmSetException() argument 102 self->exception = exception; in dvmSetException() 112 INLINE void dvmClearException(Thread* self) { in dvmClearException() argument 113 self->exception = NULL; in dvmClearException() 121 void dvmClearOptException(Thread* self); 127 INLINE bool dvmCheckException(Thread* self) { in dvmCheckException() argument 128 return (self->exception != NULL); in dvmCheckException() 175 int dvmFindCatchBlock(Thread* self, int relPc, Object* exception,
|
D | Exception.c | 100 Thread* self); 265 Thread* self = dvmThreadSelf(); in dvmThrowChainedExceptionByClass() local 289 if (dvmCheckException(self)) in dvmThrowChainedExceptionByClass() 305 if (!initException(exception, msg, cause, self)) { in dvmThrowChainedExceptionByClass() 311 if (!dvmCheckException(self)) { in dvmThrowChainedExceptionByClass() 316 self->exception = gDvm.internalErrorObj; in dvmThrowChainedExceptionByClass() 322 self->exception = exception; in dvmThrowChainedExceptionByClass() 325 dvmReleaseTrackedAlloc(exception, self); in dvmThrowChainedExceptionByClass() 405 Thread* self) in initException() argument 420 assert(self != NULL); in initException() [all …]
|
D | Sync.h | 90 void dvmLockObject(struct Thread* self, struct Object* obj); 95 bool dvmUnlockObject(struct Thread* self, struct Object* obj); 100 void dvmObjectWait(struct Thread* self, struct Object* obj, 102 void dvmObjectNotify(struct Thread* self, struct Object* obj); 103 void dvmObjectNotifyAll(struct Thread* self, struct Object* obj);
|
D | Thread.h | 275 void dvmLockThreadList(Thread* self); 318 bool dvmCheckSuspendPending(Thread* self); 324 INLINE bool dvmCheckSuspendQuick(Thread* self) { in dvmCheckSuspendQuick() argument 325 return (self->suspendCount != 0); in dvmCheckSuspendQuick() 340 ThreadStatus dvmChangeStatus(Thread* self, ThreadStatus newStatus); 486 INLINE JNIEnv* dvmGetThreadJNIEnv(Thread* self) { return self->jniEnv; } in dvmGetThreadJNIEnv() argument 487 INLINE void dvmSetThreadJNIEnv(Thread* self, JNIEnv* env) { self->jniEnv = env;} in dvmSetThreadJNIEnv() argument 558 void dvmAddToMonitorList(Thread* self, Object* obj, bool withTrace); 559 void dvmRemoveFromMonitorList(Thread* self, Object* obj); 560 LockedObjectData* dvmFindInMonitorList(const Thread* self, const Object* obj);
|
/dalvik/vm/alloc/ |
D | Alloc.c | 85 Thread* self = dvmThreadSelf(); in createStockException() local 115 dvmReleaseTrackedAlloc(obj, self); in createStockException() 121 dvmCallMethod(self, init, obj, &unused, msgStr); in createStockException() 122 if (dvmCheckException(self)) { in createStockException() 123 dvmReleaseTrackedAlloc((Object*) msgStr, self); in createStockException() 124 dvmReleaseTrackedAlloc(obj, self); in createStockException() 128 dvmReleaseTrackedAlloc((Object*) msgStr, self); // okay if msgStr NULL in createStockException() 253 void dvmAddTrackedAlloc(Object* obj, Thread* self) in dvmAddTrackedAlloc() argument 255 if (self == NULL) in dvmAddTrackedAlloc() 256 self = dvmThreadSelf(); in dvmAddTrackedAlloc() [all …]
|
D | Heap.c | 166 Thread *self; in dvmLockHeap() local 169 self = dvmThreadSelf(); in dvmLockHeap() 170 oldStatus = dvmChangeStatus(self, THREAD_VMWAIT); in dvmLockHeap() 172 dvmChangeStatus(self, oldStatus); in dvmLockHeap() 228 Thread* self = dvmThreadSelf(); in gcForMalloc() local 230 if (self != NULL) { in gcForMalloc() 231 self->allocProf.gcCount++; in gcForMalloc() 348 Thread *self; in throwOOME() local 350 if ((self = dvmThreadSelf()) != NULL) { in throwOOME() 359 if (dvmIsOnThreadList(self) && !self->throwingOOME) { in throwOOME() [all …]
|
D | HeapWorker.c | 201 Thread *self; in lockMutex() local 206 self = dvmThreadSelf(); in lockMutex() 207 assert(self != NULL); in lockMutex() 208 oldStatus = dvmChangeStatus(self, THREAD_VMWAIT); in lockMutex() 210 dvmChangeStatus(self, oldStatus); in lockMutex() 214 static void callMethod(Thread *self, Object *obj, Method *method) in callMethod() argument 239 sprintf(tmpTag, "HW%d", self->systemTid); in callMethod() 241 dvmCallMethod(self, method, obj, &unused); in callMethod() 244 dvmCallMethod(self, method, obj, &unused); in callMethod() 258 if (dvmCheckException(self)) { in callMethod() [all …]
|
/dalvik/vm/native/ |
D | java_lang_Object.c | 65 const Method* method, Thread* self) in Dalvik_java_lang_Object_notify() argument 69 dvmObjectNotify(self, thisPtr); in Dalvik_java_lang_Object_notify() 77 const Method* method, Thread* self) in Dalvik_java_lang_Object_notifyAll() argument 81 dvmObjectNotifyAll(self, thisPtr); in Dalvik_java_lang_Object_notifyAll() 89 const Method* method, Thread* self) in Dalvik_java_lang_Object_wait() argument 93 dvmObjectWait(self, thisPtr, GET_ARG_LONG(args,1), (s4)args[3], true); in Dalvik_java_lang_Object_wait()
|
/dalvik/vm/mterp/c/ |
D | OP_MOVE_EXCEPTION.c | 4 assert(self->exception != NULL); 5 SET_REGISTER(vdst, (u4)self->exception); 6 dvmClearException(self);
|
D | gotoTargets.c | 323 assert(dvmCheckException(self)); in GOTO_TARGET() 550 TRACE_METHOD_EXIT(self, curMethod); in GOTO_TARGET() 567 self->curFrame = fp; in GOTO_TARGET() 617 assert(dvmCheckException(self)); in GOTO_TARGET() 618 exception = dvmGetException(self); in GOTO_TARGET() 619 dvmAddTrackedAlloc(exception, self); in GOTO_TARGET() 620 dvmClearException(self); in GOTO_TARGET() 643 catchRelPc = dvmFindCatchBlock(self, pc - curMethod->insns, in GOTO_TARGET() 665 catchRelPc = dvmFindCatchBlock(self, pc - curMethod->insns, in GOTO_TARGET() 689 if (self->stackOverflowed) in GOTO_TARGET() [all …]
|
/dalvik/vm/mterp/ |
D | Mterp.c | 69 bool dvmMterpStd(Thread* self, InterpState* glue) in dvmMterpStd() argument 74 glue->self = self; in dvmMterpStd() 77 glue->interpStackEnd = self->interpStackEnd; in dvmMterpStd() 78 glue->pSelfSuspendCount = &self->suspendCount; in dvmMterpStd() 109 glue->self->inJitCodeCache = NULL; in dvmMterpStd()
|
/dalvik/vm/mterp/portable/ |
D | portdbg.c | 5 checkDebugAndProf(pc, fp, self, curMethod, &debugIsMethodEntry) 8 #define CHECK_JIT_BOOL() (dvmCheckJit(pc, self, interpState, callsiteClass,\ 10 #define CHECK_JIT_VOID() (dvmCheckJit(pc, self, interpState, callsiteClass,\
|
D | debug.c | 28 bool methodEntry, Thread* self) in updateDebugger() argument 60 if (pCtrl->active && pCtrl->thread == self) { in updateDebugger() 92 frameDepth = dvmComputeVagueFrameDepth(self, fp); in updateDebugger() 118 frameDepth = dvmComputeVagueFrameDepth(self, fp); in updateDebugger() 180 static void checkDebugAndProf(const u2* pc, const u4* fp, Thread* self, in checkDebugAndProf() argument 223 TRACE_METHOD_ENTER(self, method); in checkDebugAndProf() 226 updateDebugger(method, pc, fp, isEntry, self); in checkDebugAndProf()
|
D | stubdefs.c | 49 dvmInterpCheckTrackedRefs(self, curMethod, debugTrackedRefStart) 83 if (dvmCheckSuspendQuick(self)) { \ 85 dvmCheckSuspendPending(self); \ 91 self->threadId, \
|
D | entry.c | 6 bool INTERP_FUNC_NAME(Thread* self, InterpState* interpState) argument 9 StackSaveArea* debugSaveArea = SAVEAREA_FROM_FP(self->curFrame); 51 interpState->self->shadowSpace->jitExitState = kSVSIdle; 67 dvmJitCheckTraceRequest(self, interpState)) { 84 self->threadId, (interpState->nextMode == INTERP_STD) ? "STD" : "DBG",
|
/dalvik/vm/mterp/x86-atom/ |
D | OP_MOVE_EXCEPTION.S | 33 movl offGlue_self(%eax), %ecx # %ecx<- glue->self 35 movl offThread_exception(%ecx), %edx # %edx<- glue->self->exception 37 SET_VREG %edx, rINST # vAA<- glue->self->exception
|
D | OP_MONITOR_ENTER.S | 35 movl offGlue_self(%eax), %eax # %eax<- glue->self 46 call dvmLockObject # call: (struct Thread* self, 53 movl offGlue_self(%eax), %eax # %eax<- glue->self 54 movl offThread_exception(%eax), %eax # %eax<- glue->self->exception
|
D | footer.S | 57 movl offGlue_self(%edx), %eax # %eax<- glue->self 60 call dvmCheckSuspendPending # call: (Thread* self) 102 movl offGlue_self(%ecx), %eax# %eax<- glue->self 106 call dvmCheckSuspendPending # call: (Thread* self) 289 movl offGlue_self(%eax), %ecx # %ecx<- glue->self 291 movl rFP, offThread_curFrame(%ecx) # glue->self->curFrame<- newFP 302 movl offGlue_self(%edx), %edx # %edx<- glue->self 303 movl offThread_jniLocal_topCookie(%edx), %ecx # %ecx<- glue->self->thread->refNext 307 movl %eax, offThread_curFrame(%edx) # glue->self->curFrame<- newFP 308 movl %edx, -8(%esp) # save glue->self [all …]
|
/dalvik/vm/mterp/cstubs/ |
D | stubdefs.c | 35 #define self glue->self macro 113 if (dvmCheckSuspendQuick(self)) { \ 115 dvmCheckSuspendPending(self); \ 121 self->threadId, (_entryPoint), (_pcadj)); \
|