Lines Matching refs:self
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()
364 self->throwingOOME = true; in throwOOME()
383 dvmSetException(self, gDvm.outOfMemoryObj); in throwOOME()
387 self->throwingOOME = false; in throwOOME()
433 Thread* self = dvmThreadSelf(); in dvmMalloc() local
434 if (self != NULL) { in dvmMalloc()
435 int count = self->allocLimit; in dvmMalloc()
437 self->allocLimit--; in dvmMalloc()
441 self->allocLimit = -1; in dvmMalloc()
480 Thread* self = dvmThreadSelf(); in dvmMalloc() local
483 if (self != NULL) { in dvmMalloc()
484 self->allocProf.allocCount++; in dvmMalloc()
485 self->allocProf.allocSize += size; in dvmMalloc()
493 Thread* self = dvmThreadSelf(); in dvmMalloc() local
496 if (self != NULL) { in dvmMalloc()
497 self->allocProf.failedAllocCount++; in dvmMalloc()
498 self->allocProf.failedAllocSize += size; in dvmMalloc()
959 Thread *self = dvmThreadSelf(); in dvmWaitForConcurrentGcToComplete() local
961 assert(self != NULL); in dvmWaitForConcurrentGcToComplete()
962 oldStatus = dvmChangeStatus(self, THREAD_VMWAIT); in dvmWaitForConcurrentGcToComplete()
964 dvmChangeStatus(self, oldStatus); in dvmWaitForConcurrentGcToComplete()