Home | History | Annotate | Download | only in alloc

Lines Matching refs:HeapSource

28 #include "alloc/HeapSource.h"
35 static size_t getMaximumSize(const HeapSource *hs);
58 assert(gDvm.gcHeap->heapSource != NULL); \
59 assert(gHs == gDvm.gcHeap->heapSource); \
103 struct HeapSource {
157 /* True if zygote mode was active when the HeapSource was created.
205 static bool isSoftLimited(const HeapSource *hs)
220 static size_t getAllocLimit(const HeapSource *hs)
233 static size_t oldHeapOverhead(const HeapSource *hs, bool includeActive)
254 static Heap *ptr2heap(const HeapSource *hs, const void *ptr)
271 * Functions to update heapSource->bytesAllocated when an object
285 HeapSource* hs = gDvm.gcHeap->heapSource;
300 HeapSource* hs = gDvm.gcHeap->heapSource;
308 static HeapSource *gHs = NULL;
372 static bool addInitialHeap(HeapSource *hs, mspace msp, size_t maximumSize)
395 static bool remapNewHeap(HeapSource* hs, Heap* newHeap)
423 static bool addNewHeap(HeapSource *hs)
596 HeapSource *hs;
633 hs = (HeapSource *)calloc(1, sizeof(*hs));
687 gcHeap->heapSource = hs;
711 HeapSource *hs = gHs; // use a local to avoid the implicit "volatile"
746 if (*gcHeap != NULL && (*gcHeap)->heapSource != NULL) {
747 HeapSource *hs = (*gcHeap)->heapSource;
760 * Gets the begining of the allocation for the HeapSource.
773 HeapSource *hs = gHs;
795 HeapSource *hs = gHs;
833 HeapSource *hs = gHs;
922 HeapSource *hs = gHs;
996 static void* heapAllocAndGrow(HeapSource *hs, Heap *heap, size_t n)
1022 HeapSource *hs = gHs;
1134 HeapSource *hs = gHs;
1182 static size_t getMaximumSize(const HeapSource *hs)
1224 HeapSource *hs = gHs;
1239 HeapSource *hs = gHs;
1250 static void setSoftLimit(HeapSource *hs, size_t softLimit)
1281 HeapSource *hs = gHs;
1321 HeapSource *hs = gHs;
1334 HeapSource *hs = gHs;
1357 static size_t getUtilizationTarget(const HeapSource* hs, size_t liveSize)
1384 HeapSource *hs = gHs;
1451 HeapSource *hs = gHs;
1485 HeapSource *hs = gHs;