Home | History | Annotate | Download | only in alloc

Lines Matching defs:base

94     char *base;
149 * The base address of the virtual memory reservation.
241 if ((const char *)ptr >= heap->base && (const char *)ptr < heap->limit) {
289 static mspace createMspace(void *base, size_t startSize, size_t maximumSize)
303 maximumSize, /*locked=*/false, base);
334 hs->heaps[0].base = hs->heapBase;
363 char *base = (char *)ALIGN_UP_TO_PAGE_SIZE(sbrk0);
364 size_t overhead = base - hs->heaps[0].base;
365 assert(((size_t)hs->heaps[0].base & (SYSTEM_PAGE_SIZE - 1)) == 0);
376 heap.base = base;
377 heap.limit = heap.base + heap.maximumSize;
378 heap.msp = createMspace(base, HEAP_MIN_FREE, hs->maximumSize - overhead);
386 hs->heaps[0].limit = base;
484 stack->base = (const Object **)addr;
487 madvise(stack->base, stack->length, MADV_DONTNEED);
494 munmap(stack->base, stack->length);
510 void *base;
525 base = dvmAllocRegion(length, PROT_NONE, "dalvik-heap");
526 if (base == NULL) {
533 msp = createMspace(base, startSize, maximumSize);
560 hs->heapBase = (char *)base;
566 if (!dvmHeapBitmapInit(&hs->liveBits, base, length, "dalvik-bitmap-1")) {
570 if (!dvmHeapBitmapInit(&hs->markBits, base, length, "dalvik-bitmap-2")) {
588 munmap(base, length);
703 void dvmHeapSourceGetRegions(uintptr_t *base, uintptr_t *max, size_t numHeaps)
711 base[i] = (uintptr_t)hs->heaps[i].base;
757 assert(immuneLimit == gHs->heaps[0].base ||
759 assert(gHs->liveBits.base == gHs->markBits.base);
762 assert(gHs->heaps[0].base >= immuneLimit);
766 if (gHs->heaps[i].base < immuneLimit) {
770 (uintptr_t)gHs->heaps[i].base - gHs->liveBits.base);
776 gHs->heaps[i].limit - gHs->heaps[i].base);
1074 gHs->heaps[0].limit = gHs->heaps[0].base + gHs->heaps[0].maximumSize;
1368 return hs2heap(gHs)->base;