Lines Matching defs:gcHeap
440 GcHeap *dvmHeapSourceStartup(size_t startSize, size_t absoluteMaxSize)
442 GcHeap* gcHeap;
490 gcHeap = calloc(1, sizeof(*gcHeap));
491 assert(gcHeap != NULL);
492 gcHeap->heapSource = heapSource;
494 return gcHeap;
513 void dvmHeapSourceShutdown(GcHeap **gcHeap)
515 if (*gcHeap == NULL || (*gcHeap)->heapSource == NULL)
517 free((*gcHeap)->heapSource->blockQueue);
518 free((*gcHeap)->heapSource->blockSpace);
519 virtualFree((*gcHeap)->heapSource->blockBase,
520 (*gcHeap
521 free((*gcHeap)->heapSource);
522 (*gcHeap)->heapSource = NULL;
523 free(*gcHeap);
524 *gcHeap = NULL;
534 heapSource = gDvm.gcHeap->heapSource;
570 return &gDvm.gcHeap->heapSource->allocBits;
589 heapSource = gDvm.gcHeap->heapSource;
645 heapSource = gDvm.gcHeap->heapSource;
663 HeapSource *heapSource = gDvm.gcHeap->heapSource;
676 heapSource = gDvm.gcHeap->heapSource;
710 return gDvm.gcHeap->heapSource->currentSize;
765 HeapSource *heapSource = gDvm.gcHeap->heapSource;
787 HeapSource *heapSource = gDvm.gcHeap->heapSource;
800 heapSource = gDvm.gcHeap->heapSource;
826 promoteBlockByAddr(gDvm.gcHeap->heapSource, obj);
998 if (!dvmHeapAddRefToLargeTable(&gDvm.gcHeap->referenceOperations, ref)) {
1109 LargeHeapRefTable *finRefs = gDvm.gcHeap->finalizableRefs;
1183 if (!dvmHeapAddTableToLargeTable(&gDvm.gcHeap->pendingFinalizationRefs,
1230 queue = &gDvm.gcHeap->softReferences;
1232 queue = &gDvm.gcHeap->weakReferences;
1235 queue = &gDvm.gcHeap->phantomReferences;
1285 gDvm.gcHeap->heapSource->allocBlocks);
1318 fromObj, addressToBlock(gDvm.gcHeap->heapSource,fromObj),
1319 toObj, addressToBlock(gDvm.gcHeap->heapSource,toObj),
2009 heapSource = gDvm.gcHeap->heapSource;
2028 HeapSource *heapSource = gDvm.gcHeap->heapSource;
2052 HeapSource *heapSource = gDvm.gcHeap->heapSource;
2066 GcHeap *gcHeap;
2076 gcHeap = gDvm.gcHeap;
2090 // describeBlocks(gcHeap->heapSource);
2097 gDvm.gcHeap->heapSource->allocPtr = allocateBlocks(gDvm.gcHeap->heapSource, 1);
2098 gDvm.gcHeap->heapSource->allocLimit = gDvm.gcHeap->heapSource->allocPtr + BLOCK_SIZE;
2105 promoteBlockByAddr(gDvm.gcHeap->heapSource, gDvm.gcHeap->heapSource->allocPtr);
2114 LOG_SCAV("Scavenging gDvm.gcHeap->referenceOperations");
2115 scavengeLargeHeapRefTable(gcHeap->referenceOperations);
2117 LOG_SCAV("Scavenging gDvm.gcHeap->pendingFinalizationRefs");
2118 scavengeLargeHeapRefTable(gcHeap->pendingFinalizationRefs);
2142 preserveSoftReferences(&gDvm.gcHeap->softReferences);
2143 clearWhiteReferences(&gDvm.gcHeap->softReferences);
2146 clearWhiteReferences(&gDvm.gcHeap->weakReferences);
2152 clearWhiteReferences(&gDvm.gcHeap->softReferences);
2155 clearWhiteReferences(&gDvm.gcHeap->weakReferences);
2158 clearWhiteReferences(&gDvm.gcHeap->phantomReferences);
2166 //describeBlocks(gcHeap->heapSource);
2168 clearFromSpace(gcHeap->heapSource);