Home | History | Annotate | Download | only in alloc

Lines Matching defs:gcHeap

62         assert(gDvm.gcHeap != NULL); \
63 assert(gDvm.gcHeap->heapSource != NULL); \
64 assert(gHs == gDvm.gcHeap->heapSource); \
264 HeapSource* hs = gDvm.gcHeap->heapSource;
279 HeapSource* hs = gDvm.gcHeap->heapSource;
428 if (!gDvm.gcHeap->gcRunning) {
500 * dvmHeapSource*() functions. Returns a GcHeap structure
503 GcHeap* dvmHeapSourceStartup(size_t startSize, size_t maximumSize,
506 GcHeap *gcHeap;
538 gcHeap = (GcHeap *)calloc(1, sizeof(*gcHeap));
539 if (gcHeap == NULL) {
547 free(gcHeap);
575 if (!allocMarkStack(&gcHeap->markContext.stack, hs->maximumSize)) {
581 gcHeap->markContext.bitmap = &hs->markBits;
582 gcHeap->heapSource = hs;
585 return gcHeap;
625 if (gDvm.gcHeap != NULL && gDvm.concurrentMarkSweep) {
631 * Tears down the entire GcHeap structure and all of the substructures
633 * gcHeap pointer and gHs to NULL.
635 void dvmHeapSourceShutdown(GcHeap **gcHeap)
637 assert(gcHeap != NULL);
638 if (*gcHeap != NULL && (*gcHeap)->heapSource != NULL) {
639 HeapSource *hs = (*gcHeap)->heapSource;
642 freeMarkStack(&(*gcHeap)->markContext.stack);
646 free(*gcHeap);
647 *gcHeap = NULL;
813 if (gDvm.gcHeap->gcRunning || !hs->hasGcThread) {
1070 gDvm.gcHeap->cardTableLength = gDvm.gcHeap->cardTableMaxLength;
1356 * in gDvm.gcHeap.