Home | History | Annotate | Download | only in alloc

Lines Matching defs:gcHeap

57         assert(gDvm.gcHeap != NULL); \
58 assert(gDvm.gcHeap->heapSource != NULL); \
59 assert(gHs == gDvm.gcHeap->heapSource); \
285 HeapSource* hs = gDvm.gcHeap->heapSource;
300 HeapSource* hs = gDvm.gcHeap->heapSource;
517 if (!gDvm.gcHeap->gcRunning) {
589 * dvmHeapSource*() functions. Returns a GcHeap structure
592 GcHeap* dvmHeapSourceStartup(size_t startSize, size_t maximumSize,
595 GcHeap *gcHeap;
627 gcHeap = (GcHeap *)calloc(1, sizeof(*gcHeap));
628 if (gcHeap == NULL) {
636 free(gcHeap);
680 if (!allocMarkStack(&gcHeap->markContext.stack, hs->maximumSize)) {
686 gcHeap->markContext.bitmap = &hs->markBits;
687 gcHeap->heapSource = hs;
690 return gcHeap;
733 if (gDvm.gcHeap != NULL && gDvm.concurrentMarkSweep) {
739 * Tears down the entire GcHeap structure and all of the substructures
741 * gcHeap pointer and gHs to NULL.
743 void dvmHeapSourceShutdown(GcHeap **gcHeap)
745 assert(gcHeap != NULL);
746 if (*gcHeap != NULL && (*gcHeap)->heapSource != NULL) {
747 HeapSource *hs = (*gcHeap)->heapSource;
750 freeMarkStack(&(*gcHeap)->markContext.stack);
754 free(*gcHeap);
755 *gcHeap = NULL;
976 if (gDvm.gcHeap->gcRunning || !hs->hasGcThread) {
1206 gDvm.gcHeap->cardTableLength = gDvm.gcHeap->cardTableMaxLength;
1496 * in gDvm.gcHeap.