Lines Matching refs:gcHeap
57 assert(gDvm.gcHeap != NULL); \
58 assert(gDvm.gcHeap->heapSource != NULL); \
59 assert(gHs == gDvm.gcHeap->heapSource); \
285 HeapSource* hs = gDvm.gcHeap->heapSource; in countAllocation()
300 HeapSource* hs = gDvm.gcHeap->heapSource; in countFree()
517 if (!gDvm.gcHeap->gcRunning) { in gcDaemonThread()
595 GcHeap *gcHeap; in dvmHeapSourceStartup() local
627 gcHeap = (GcHeap *)calloc(1, sizeof(*gcHeap)); in dvmHeapSourceStartup()
628 if (gcHeap == NULL) { in dvmHeapSourceStartup()
636 free(gcHeap); in dvmHeapSourceStartup()
680 if (!allocMarkStack(&gcHeap->markContext.stack, hs->maximumSize)) { in dvmHeapSourceStartup()
686 gcHeap->markContext.bitmap = &hs->markBits; in dvmHeapSourceStartup()
687 gcHeap->heapSource = hs; in dvmHeapSourceStartup()
690 return gcHeap; in dvmHeapSourceStartup()
733 if (gDvm.gcHeap != NULL && gDvm.concurrentMarkSweep) { in dvmHeapSourceThreadShutdown()
743 void dvmHeapSourceShutdown(GcHeap **gcHeap) in dvmHeapSourceShutdown() argument
745 assert(gcHeap != NULL); in dvmHeapSourceShutdown()
746 if (*gcHeap != NULL && (*gcHeap)->heapSource != NULL) { in dvmHeapSourceShutdown()
747 HeapSource *hs = (*gcHeap)->heapSource; in dvmHeapSourceShutdown()
750 freeMarkStack(&(*gcHeap)->markContext.stack); in dvmHeapSourceShutdown()
754 free(*gcHeap); in dvmHeapSourceShutdown()
755 *gcHeap = NULL; in dvmHeapSourceShutdown()
976 if (gDvm.gcHeap->gcRunning || !hs->hasGcThread) { in dvmHeapSourceAlloc()
1206 gDvm.gcHeap->cardTableLength = gDvm.gcHeap->cardTableMaxLength; in dvmClearGrowthLimit()