Home | History | Annotate | Download | only in alloc

Lines Matching refs:HeapSource

27 #include "alloc/HeapSource.h"
37 static size_t getMaximumSize(const HeapSource *hs);
63 assert(gDvm.gcHeap->heapSource != NULL); \
64 assert(gHs == gDvm.gcHeap->heapSource); \
102 struct HeapSource {
144 /* True if zygote mode was active when the HeapSource was created.
184 static bool isSoftLimited(const HeapSource *hs)
199 static size_t getAllocLimit(const HeapSource *hs)
212 static size_t oldHeapOverhead(const HeapSource *hs, bool includeActive)
233 static Heap *ptr2heap(const HeapSource *hs, const void *ptr)
250 * Functions to update heapSource->bytesAllocated when an object
264 HeapSource* hs = gDvm.gcHeap->heapSource;
279 HeapSource* hs = gDvm.gcHeap->heapSource;
287 static HeapSource *gHs = NULL;
324 static bool addInitialHeap(HeapSource *hs, mspace msp, size_t maximumSize)
344 static bool addNewHeap(HeapSource *hs)
507 HeapSource *hs;
544 hs = (HeapSource *)calloc(1, sizeof(*hs));
582 gcHeap->heapSource = hs;
606 HeapSource *hs = gHs; // use a local to avoid the implicit "volatile"
638 if (*gcHeap != NULL && (*gcHeap)->heapSource != NULL) {
639 HeapSource *hs = (*gcHeap)->heapSource;
652 * Gets the begining of the allocation for the HeapSource.
668 HeapSource *hs = gHs;
705 HeapSource *hs = gHs;
794 HeapSource *hs = gHs;
833 static void* heapAllocAndGrow(HeapSource *hs, Heap *heap, size_t n)
859 HeapSource *hs = gHs;
998 HeapSource *hs = gHs;
1046 static size_t getMaximumSize(const HeapSource *hs)
1088 HeapSource *hs = gHs;
1103 HeapSource *hs = gHs;
1114 static void setSoftLimit(HeapSource *hs, size_t softLimit)
1145 HeapSource *hs = gHs;
1185 HeapSource *hs = gHs;
1198 HeapSource *hs = gHs;
1250 HeapSource *hs = gHs;
1308 HeapSource *hs = gHs;
1346 HeapSource *hs = gHs;