Home
last modified time | relevance | path

Searched refs:gcHeap (Results 1 – 8 of 8) sorted by relevance

/dalvik/vm/alloc/
DHeap.cpp83 GcHeap *gcHeap; in dvmHeapStartup() local
89 gcHeap = dvmHeapSourceStartup(gDvm.heapStartingSize, in dvmHeapStartup()
92 if (gcHeap == NULL) { in dvmHeapStartup()
95 gcHeap->ddmHpifWhen = 0; in dvmHeapStartup()
96 gcHeap->ddmHpsgWhen = 0; in dvmHeapStartup()
97 gcHeap->ddmHpsgWhat = 0; in dvmHeapStartup()
98 gcHeap->ddmNhsgWhen = 0; in dvmHeapStartup()
99 gcHeap->ddmNhsgWhat = 0; in dvmHeapStartup()
100 gDvm.gcHeap = gcHeap; in dvmHeapStartup()
104 gcHeap->clearedReferences = NULL; in dvmHeapStartup()
[all …]
DCardTable.cpp56 GcHeap *gcHeap = gDvm.gcHeap; in dvmCardTableStartup() local
59 assert(gcHeap != NULL); in dvmCardTableStartup()
72 gcHeap->cardTableBase = (u1*)allocBase; in dvmCardTableStartup()
73 gcHeap->cardTableLength = growthLimit / GC_CARD_SIZE; in dvmCardTableStartup()
74 gcHeap->cardTableMaxLength = length; in dvmCardTableStartup()
78 gcHeap->cardTableOffset = offset + (offset < 0 ? 0x100 : 0); in dvmCardTableStartup()
79 biasedBase += gcHeap->cardTableOffset; in dvmCardTableStartup()
92 munmap(gDvm.gcHeap->cardTableBase, gDvm.gcHeap->cardTableLength); in dvmCardTableShutdown()
134 assert(gDvm.gcHeap->cardTableBase != NULL); in dvmClearCardTable()
138 madvise(gDvm.gcHeap->cardTableBase, gDvm.gcHeap->cardTableLength, MADV_DONTNEED); in dvmClearCardTable()
[all …]
DDdmHeap.cpp71 if (reason == gDvm.gcHeap->ddmHpifWhen) { in dvmDdmSendHeapInfo()
76 if (reason == gDvm.gcHeap->ddmHpifWhen) { in dvmDdmSendHeapInfo()
77 if (gDvm.gcHeap->ddmHpifWhen == HPIF_WHEN_NEXT_GC) { in dvmDdmSendHeapInfo()
78 gDvm.gcHeap->ddmHpifWhen = HPIF_WHEN_NEVER; in dvmDdmSendHeapInfo()
136 gDvm.gcHeap->ddmHpifWhen = when; in dvmDdmHandleHpifChunk()
433 GcHeap *gcHeap = gDvm.gcHeap; in dvmDdmSendHeapSegments() local
440 when = gcHeap->ddmHpsgWhen; in dvmDdmSendHeapSegments()
441 what = gcHeap->ddmHpsgWhat; in dvmDdmSendHeapSegments()
446 when = gcHeap->ddmNhsgWhen; in dvmDdmSendHeapSegments()
447 what = gcHeap->ddmNhsgWhat; in dvmDdmSendHeapSegments()
[all …]
DCopying.cpp442 GcHeap* gcHeap; in dvmHeapSourceStartup() local
490 gcHeap = calloc(1, sizeof(*gcHeap)); in dvmHeapSourceStartup()
491 assert(gcHeap != NULL); in dvmHeapSourceStartup()
492 gcHeap->heapSource = heapSource; in dvmHeapSourceStartup()
494 return gcHeap; in dvmHeapSourceStartup()
513 void dvmHeapSourceShutdown(GcHeap **gcHeap) in dvmHeapSourceShutdown() argument
515 if (*gcHeap == NULL || (*gcHeap)->heapSource == NULL) in dvmHeapSourceShutdown()
517 free((*gcHeap)->heapSource->blockQueue); in dvmHeapSourceShutdown()
518 free((*gcHeap)->heapSource->blockSpace); in dvmHeapSourceShutdown()
519 virtualFree((*gcHeap)->heapSource->blockBase, in dvmHeapSourceShutdown()
[all …]
DMarkSweep.cpp91 GcMarkContext *ctx = &gDvm.gcHeap->markContext; in dvmHeapBeginMarkStep()
183 GcHeap *gcHeap = gDvm.gcHeap; in dvmHeapMarkRootSet() local
184 dvmMarkImmuneObjects(gcHeap->markContext.immuneLimit); in dvmHeapMarkRootSet()
185 dvmVisitRoots(rootMarkObjectVisitor, &gcHeap->markContext); in dvmHeapMarkRootSet()
209 GcMarkContext *ctx = &gDvm.gcHeap->markContext; in dvmHeapReMarkRootSet()
414 GcHeap *gcHeap = gDvm.gcHeap; in delayReferenceReferent() local
422 list = &gcHeap->softReferences; in delayReferenceReferent()
424 list = &gcHeap->weakReferences; in delayReferenceReferent()
426 list = &gcHeap->finalizerReferences; in delayReferenceReferent()
428 list = &gcHeap->phantomReferences; in delayReferenceReferent()
[all …]
DHeapSource.cpp57 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()
[all …]
DHeapSource.h70 void dvmHeapSourceShutdown(GcHeap **gcHeap);
/dalvik/vm/
DGlobals.h557 GcHeap* gcHeap; member