Lines Matching refs:self

100     Thread* self);
114 Thread* self = dvmThreadSelf();
148 if (dvmCheckException(self))
164 if (!initException(exception, msg, cause, self)) {
170 if (!dvmCheckException(self)) {
175 self->exception = gDvm.internalErrorObj;
181 self->exception = exception;
184 dvmReleaseTrackedAlloc(exception, self);
241 * "self" is dvmThreadSelf(), passed in so we don't have to look it up again.
245 * and leave self->exception intact.
248 Thread* self)
263 assert(self != NULL);
264 assert(self->exception == NULL);
386 dvmCallMethod(self, initMethod, exception, &unused);
390 dvmCallMethod(self, initMethod, exception, &unused, msgStr);
395 dvmCallMethod(self, initMethod, exception, &unused, cause);
400 dvmCallMethod(self, initMethod, exception, &unused, msgStr, cause);
411 if (self->exception != NULL) {
413 self->exception->clazz->descriptor, exception->clazz->descriptor);
427 dvmCallMethod(self, initCause, exception, &unused, cause);
428 if (self->exception != NULL) {
434 self->exception->clazz->descriptor,
448 dvmReleaseTrackedAlloc((Object*) msgStr, self); // NULL is ok
460 void dvmClearOptException(Thread* self)
462 self->exception = NULL;
490 Thread* self = dvmThreadSelf();
494 origExcep = dvmGetException(self);
495 dvmAddTrackedAlloc(origExcep, self); // don't let the GC free it
497 dvmClearException(self); // clear before class lookup
509 dvmCallMethod(self, initMethod, iteExcep, &unused,
513 if (!dvmCheckException(self))
514 dvmSetException(self, iteExcep);
519 if (!dvmCheckException(self))
520 dvmSetException(self, origExcep);
528 assert(dvmCheckException(self));
529 dvmReleaseTrackedAlloc(origExcep, self);
566 Thread* self = dvmThreadSelf();
570 exception = self->exception;
574 dvmAddTrackedAlloc(exception, self);
575 self->exception = NULL;
580 dvmCallMethod(self, printMethod, exception, &unused);
586 if (self->exception != NULL) {
588 self->exception->clazz->descriptor);
591 self->exception = exception;
592 dvmReleaseTrackedAlloc(exception, self);
600 static int findCatchInMethod(Thread* self, const Method* method, int relPc,
607 assert(!dvmCheckException(self));
612 dvmComputeExactFrameDepth(self->interpSave.curFrame));
677 (self->exception != NULL) ?
678 self->exception->clazz->descriptor : "(none)");
679 dvmClearException(self);
713 * If "scanOnly" is false, self->interpSave.curFrame is also set to this value.
715 int dvmFindCatchBlock(Thread* self, int relPc, Object* exception,
718 u4* fp = self->interpSave.curFrame;
721 assert(!dvmCheckException(self));
725 catchAddr = findCatchInMethod(self, saveArea->method, relPc,
738 TRACE_METHOD_UNROLL(self, saveArea->method);
792 self->interpSave.curFrame = fp;
798 self->exception = NULL;
810 * not self, the thread must be suspended. This implies that the thread
1074 Thread* self = dvmThreadSelf();
1083 pendingException = dvmGetException(self);
1085 dvmAddTrackedAlloc(pendingException, self);
1086 dvmClearException(self);
1093 ThreadStatus oldStatus = dvmChangeStatus(self, THREAD_RUNNING);
1096 dvmCallMethod(self, getMessageMethod, exception, &result);
1099 dvmAddTrackedAlloc((Object*) messageStr, self);
1101 dvmChangeStatus(self, oldStatus);
1107 if (dvmGetException(self) != NULL) {
1109 dvmGetException(self)->clazz->descriptor);
1113 dvmSetException(self, pendingException);
1115 dvmReleaseTrackedAlloc(pendingException, self);
1291 Thread* self = dvmThreadSelf();
1292 Object* exception = dvmGetException(self);
1299 dvmAddTrackedAlloc(exception, self);
1300 dvmClearException(self);
1304 dvmReleaseTrackedAlloc(exception, self);