Searched refs:self (Results 1 - 25 of 169) sorted by last modified time

1234567

/dalvik/vm/
H A DAllocTracker.cpp168 static void getStackFrames(Thread* self, AllocRecord* pRec) argument
173 fp = self->interpSave.curFrame;
210 Thread* self = dvmThreadSelf(); local
211 if (self == NULL) {
230 pRec->threadId = self->threadId;
231 getStackFrames(self, pRec);
H A DAndroid.mk73 ifneq ($(dvm_arch),mips) # MIPS support for self-verification is incomplete
76 # Enable assertions and JIT self-verification
H A DCheckJni.cpp65 const Method* method, Thread* self)
134 const Method* method, Thread* self)
136 return (method->shorty[0] == 'L' && !dvmCheckException(self) && pResult->l != NULL);
143 const Method* method, Thread* self)
145 dvmCallJNIMethod(args, pResult, method, self);
146 if (callNeedsCheck(args, pResult, method, self)) {
147 checkCallResultCommon(args, pResult, method, self);
294 Object* obj = dvmDecodeIndirectRef(self(), jobj);
344 Object* obj = dvmDecodeIndirectRef(self(), jobj);
416 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(self(), jclaz
64 checkCallResultCommon(const u4* args, const JValue* pResult, const Method* method, Thread* self) argument
133 callNeedsCheck(const u4* args, JValue* pResult, const Method* method, Thread* self) argument
142 dvmCheckCallJNIMethod(const u4* args, JValue* pResult, const Method* method, Thread* self) argument
709 Thread* self() { function in class:ScopedCheck
[all...]
H A DDdm.cpp42 Thread* self = dvmThreadSelf(); local
53 dvmClearException(self);
65 dvmClearException(self);
86 dvmCallMethod(self, gDvm.methDalvikDdmcServer_dispatch, NULL, &callRes,
88 if (dvmCheckException(self)) {
91 dvmClearException(self);
101 dvmAddTrackedAlloc(chunk, self);
150 dvmReleaseTrackedAlloc((Object*) dataArray, self);
151 dvmReleaseTrackedAlloc(chunk, self);
164 Thread* self local
428 Thread* self = dvmThreadSelf(); local
[all...]
H A DDebugger.cpp2124 Thread* self = dvmThreadSelf(); local
2125 return objectToObjectId(self->threadObj);
2684 Thread* self = dvmThreadSelf(); local
2685 ThreadStatus oldStatus = dvmChangeStatus(self, THREAD_VMWAIT);
2714 dvmChangeStatus(self, oldStatus);
2761 Thread* self = dvmThreadSelf(); local
2770 oldExcept = dvmGetException(self);
2772 dvmAddTrackedAlloc(oldExcept, self);
2773 dvmClearException(self);
2776 oldStatus = dvmChangeStatus(self, THREAD_RUNNIN
[all...]
H A DException.cpp100 Thread* self);
114 Thread* self = dvmThreadSelf(); local
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
247 initException(Object* exception, const char* msg, Object* cause, Thread* self) argument
460 dvmClearOptException(Thread* self) argument
490 Thread* self = dvmThreadSelf(); local
566 Thread* self = dvmThreadSelf(); local
600 findCatchInMethod(Thread* self, const Method* method, int relPc, ClassObject* excepClass) argument
715 dvmFindCatchBlock(Thread* self, int relPc, Object* exception, bool scanOnly, void** newFrame) argument
1074 Thread* self = dvmThreadSelf(); local
1291 Thread* self = dvmThreadSelf(); local
[all...]
H A DException.h93 INLINE Object* dvmGetException(Thread* self) { argument
94 return self->exception;
100 INLINE void dvmSetException(Thread* self, Object* exception) argument
103 self->exception = exception;
113 INLINE void dvmClearException(Thread* self) { argument
114 self->exception = NULL;
122 void dvmClearOptException(Thread* self);
126 * "self" pointer.
128 INLINE bool dvmCheckException(Thread* self) { argument
129 return (self
[all...]
H A DInit.cpp1622 Thread* self = gDvm.threadList; local
1625 self->status = THREAD_NATIVE;
1650 self->status = THREAD_RUNNING;
1664 FILE *fp = fopen("/proc/self/mounts", "r");
1666 ALOGE("Could not open /proc/self/mounts: %s", strerror(errno));
H A DInlineNative.cpp909 Thread* self = dvmThreadSelf(); local
910 TRACE_METHOD_ENTER(self, method);
913 TRACE_METHOD_EXIT(self, method);
H A DJni.cpp150 * Would be nice to compute it on "self" as well, but there are parts of
153 static void computeStackSum(Thread* self) { argument
154 const u1* low = (const u1*)SAVEAREA_FROM_FP(self->interpSave.curFrame);
156 self->stackCrc = 0;
157 crc = dvmComputeCrc32(crc, low, self->interpStackStart - low);
158 self->stackCrc = crc;
171 static void checkStackSum(Thread* self) { argument
172 const u1* low = (const u1*)SAVEAREA_FROM_FP(self->interpSave.curFrame);
173 u4 stackCrc = self->stackCrc;
174 self
221 Thread* self = gDvmJni.workAroundAppJniBugs ? dvmThreadSelf() : mSelf; local
237 inline Thread* self() { function in class:ScopedJniThreadState
300 Thread* self = dvmThreadSelf(); local
317 dvmDecodeIndirectRef(Thread* self, jobject jobj) argument
385 addLocalReference(Thread* self, Object* obj) argument
409 ensureLocalCapacity(Thread* self, int capacity) argument
418 deleteLocalReference(Thread* self, jobject jobj) argument
619 Thread* self = dvmThreadSelf(); local
662 dvmGetJNIRefType(Thread* self, jobject jobj) argument
912 logNativeMethodExit(const Method* method, Thread* self, const JValue returnValue) argument
955 trackMonitorEnter(Thread* self, Object* obj) argument
981 trackMonitorExit(Thread* self, Object* obj) argument
995 dvmReleaseJniMonitors(Thread* self) argument
1083 convertReferenceResult(JNIEnv* env, JValue* pResult, const Method* method, Thread* self) argument
1094 dvmCallJNIMethod(const u4* args, JValue* pResult, const Method* method, Thread* self) argument
2789 Thread* self = dvmThreadSelf(); local
2881 Thread* self = dvmThreadSelf(); local
2905 Thread* self = dvmThreadSelf(); local
2952 Thread* self = dvmThreadSelf(); local
3298 dvmCreateJNIEnv(Thread* self) argument
[all...]
H A DJniInternal.h43 Thread* self; member in struct:JNIEnvExt
94 INLINE void dvmPopJniLocals(Thread* self, StackSaveArea* saveArea) argument
96 self->jniLocalRefTable.segmentState.all = saveArea->xtra.localRefCookie;
102 INLINE void dvmSetJniEnvThreadId(JNIEnv* pEnv, Thread* self) argument
104 ((JNIEnvExt*)pEnv)->envThreadId = self->threadId;
105 ((JNIEnvExt*)pEnv)->self = self;
109 const Method* method, Thread* self);
111 const Method* method, Thread* self);
129 Object* dvmDecodeIndirectRef(Thread* self, jobjec
[all...]
H A DNative.cpp71 const Method* method, Thread* self)
106 dfunc(args, pResult, method, self);
115 (*method->nativeFunc)(args, pResult, method, self);
266 Thread* self = dvmThreadSelf(); local
267 if (pEntry->onLoadThreadId == self->threadId) {
273 self->threadId, pEntry->pathName);
283 self->threadId, pEntry->pathName);
284 ThreadStatus oldStatus = dvmChangeStatus(self, THREAD_VMWAIT);
286 dvmChangeStatus(self, oldStatus);
381 Thread* self local
70 dvmResolveNativeMethod(const u4* args, JValue* pResult, const Method* method, Thread* self) argument
[all...]
H A DNative.h79 const Method* method, struct Thread* self);
H A DProfile.cpp907 void dvmMethodTraceReadClocks(Thread* self, u4* cpuClockDiff, argument
912 if (!self->cpuClockBaseSet) {
914 self->cpuClockBase = getThreadCpuTimeInUsec(self);
915 self->cpuClockBaseSet = true;
917 *cpuClockDiff = getThreadCpuTimeInUsec(self) - self->cpuClockBase;
932 void dvmMethodTraceAdd(Thread* self, const Method* method, int action, argument
963 *ptr++ = (u1) self->threadId;
964 *ptr++ = (u1) (self
992 dvmFastMethodTraceEnter(const Method* method, Thread* self) argument
1008 dvmFastMethodTraceExit(Thread* self) argument
1024 dvmFastNativeMethodTraceExit(const Method* method, Thread* self) argument
[all...]
H A DProfile.h162 void dvmMethodTraceReadClocks(Thread* self, u4* cpuClockDiff,
164 void dvmMethodTraceAdd(struct Thread* self, const Method* method, int action,
173 extern "C" void dvmFastMethodTraceEnter(const Method* method, struct Thread* self);
174 extern "C" void dvmFastMethodTraceExit(struct Thread* self);
175 extern "C" void dvmFastNativeMethodTraceExit(const Method* method, struct Thread* self);
H A DSignalCatcher.cpp79 fd = open("/proc/self/cmdline", O_RDONLY, 0);
256 Thread* self = dvmThreadSelf(); local
262 ALOGV("Signal catcher thread started (threadid=%d)", self->threadId);
275 dvmChangeStatus(self, THREAD_VMWAIT);
301 /* set our status to RUNNING, self-suspending if GC in progress */
302 dvmChangeStatus(self, THREAD_RUNNING);
H A DSync.cpp262 static void logContentionEvent(Thread *self, u4 waitMs, u4 samplePercent,
276 if (self->interpSave.curFrame == NULL) {
280 saveArea = SAVEAREA_FROM_FP(self->interpSave.curFrame);
288 fd = open("/proc/self/cmdline", O_RDONLY);
302 /* Emit self thread name string, <= 37 bytes. */
303 std::string selfName = dvmGetThreadName(self);
343 static void lockMonitor(Thread* self, Monitor* mon) argument
349 if (mon->owner == self) {
354 oldStatus = dvmChangeStatus(self, THREAD_MONITOR);
367 dvmChangeStatus(self, oldStatu
416 tryLockMonitor(Thread* self, Monitor* mon) argument
439 unlockMonitor(Thread* self, Monitor* mon) argument
616 waitMonitor(Thread* self, Monitor* mon, s8 msec, s4 nsec, bool interruptShouldThrow) argument
766 notifyMonitor(Thread* self, Monitor* mon) argument
798 notifyAllMonitor(Thread* self, Monitor* mon) argument
829 inflateMonitor(Thread *self, Object *obj) argument
856 dvmLockObject(Thread* self, Object *obj) argument
1002 dvmUnlockObject(Thread* self, Object *obj) argument
1066 dvmObjectWait(Thread* self, Object *obj, s8 msec, s4 nsec, bool interruptShouldThrow) argument
1098 dvmObjectNotify(Thread* self, Object *obj) argument
1126 dvmObjectNotifyAll(Thread* self, Object *obj) argument
1167 Thread* self = dvmThreadSelf(); local
1229 Thread *self, *thread; local
[all...]
H A DSync.h78 extern "C" void dvmLockObject(Thread* self, Object* obj);
83 extern "C" bool dvmUnlockObject(Thread* self, Object* obj);
88 void dvmObjectWait(Thread* self, Object* obj,
90 void dvmObjectNotify(Thread* self, Object* obj);
91 void dvmObjectNotifyAll(Thread* self, Object* obj);
H A DThread.cpp41 #include "interp/Jit.h" // need for self verification
77 Certain debugger events may inspire threads to self-suspend.
152 The thread must move to a non-blocked state (and self-suspend) after
169 operations and self-suspend. For this to work, the VM must:
245 static void waitForThreadSuspend(Thread* self, Thread* thread);
376 void dvmLockThreadList(Thread* self) argument
380 if (self == NULL) /* try to get it from TLS */
381 self = dvmThreadSelf();
383 if (self != NULL) {
384 oldStatus = self
457 Thread* self = dvmThreadSelf(); local
534 Thread* self = dvmThreadSelf(); // may be null local
658 Thread* self; local
1058 Thread* self = (Thread*) arg; local
1237 Thread* self = dvmThreadSelf(); local
1462 Thread* self = (Thread*) arg; local
1567 threadExitUncaughtException(Thread* self, Object* group) argument
1686 Thread* self = dvmThreadSelf(); local
[all...]
H A DThread.h210 /* Buffer for register state during self verification */
347 void dvmLockThreadList(Thread* self);
394 extern "C" bool dvmCheckSuspendPending(Thread* self);
400 INLINE bool dvmCheckSuspendQuick(Thread* self) { argument
401 return (self->interpBreak.ctl.subMode & kSubModeSuspendPending);
406 * The "self" argument, which may be NULL, is accepted as an optimization.
416 ThreadStatus dvmChangeStatus(Thread* self, ThreadStatus newStatus);
565 INLINE JNIEnv* dvmGetThreadJNIEnv(Thread* self) { return self->jniEnv; } argument
566 INLINE void dvmSetThreadJNIEnv(Thread* self, JNIEn argument
[all...]
H A DUtfString.cpp386 Thread* self = dvmThreadSelf(); local
393 assert(dvmCheckException(self));
402 assert(dvmCheckException(self));
403 dvmReleaseTrackedAlloc((Object*) stringArray, self);
408 dvmReleaseTrackedAlloc(str, self);
/dalvik/vm/alloc/
H A DAlloc.cpp84 Thread *self = dvmThreadSelf(); local
85 assert(self != NULL);
87 dvmCallMethod(self, method, NULL, &unusedResult);
96 Thread* self = dvmThreadSelf(); local
126 dvmReleaseTrackedAlloc(obj, self);
132 dvmCallMethod(self, init, obj, &unused, msgStr);
133 if (dvmCheckException(self)) {
134 dvmReleaseTrackedAlloc((Object*) msgStr, self);
135 dvmReleaseTrackedAlloc(obj, self);
139 dvmReleaseTrackedAlloc((Object*) msgStr, self); // oka
257 dvmAddTrackedAlloc(Object* obj, Thread* self) argument
278 dvmReleaseTrackedAlloc(Object* obj, Thread* self) argument
315 Thread *self = dvmThreadSelf(); local
[all...]
H A DAlloc.h71 * The "self" argument is allowed as an optimization; it may be NULL.
73 extern "C" void dvmAddTrackedAlloc(Object* obj, Thread* self);
80 * The "self" argument is allowed as an optimization; it may be NULL.
82 extern "C" void dvmReleaseTrackedAlloc(Object* obj, Thread* self);
H A DHeap.cpp147 Thread *self; local
150 self = dvmThreadSelf();
151 oldStatus = dvmChangeStatus(self, THREAD_VMWAIT);
153 dvmChangeStatus(self, oldStatus);
170 Thread* self = dvmThreadSelf(); local
172 if (self != NULL) {
173 self->allocProf.gcCount++;
273 Thread *self; local
275 if ((self = dvmThreadSelf()) != NULL) {
284 if (dvmIsOnThreadList(self)
352 Thread* self = dvmThreadSelf(); local
365 Thread* self = dvmThreadSelf(); local
732 Thread *self = dvmThreadSelf(); local
[all...]
H A DHeapSource.cpp1551 Thread* self = dvmThreadSelf(); local
1553 if (dvmCheckException(self)) {
1562 if (dvmCheckException(self)) {
1575 if (dvmCheckException(self)) {

Completed in 365 milliseconds

1234567