• Home
  • Raw
  • Download

Lines Matching refs:base

134     char *base;  member
288 if ((const char *)ptr >= heap->base && (const char *)ptr < heap->limit) { in ptr2heap()
344 createMspace(void *base, size_t startSize, size_t absoluteMaxSize) in createMspace() argument
359 absoluteMaxSize, /*locked=*/false, base); in createMspace()
394 heap.base = hs->heapBase; in addNewHeap()
398 char *base = (char *)ALIGN_UP_TO_PAGE_SIZE(sbrk0); in addNewHeap() local
399 size_t overhead = base - hs->heaps[0].base; in addNewHeap()
401 assert(((size_t)hs->heaps[0].base & (SYSTEM_PAGE_SIZE - 1)) == 0); in addNewHeap()
409 hs->heaps[0].limit = base; in addNewHeap()
411 heap.msp = createMspace(base, HEAP_MIN_FREE, heap.absoluteMaxSize); in addNewHeap()
413 heap.base = base; in addNewHeap()
414 heap.limit = heap.base + heap.absoluteMaxSize; in addNewHeap()
490 void *base; in dvmHeapSourceStartup() local
505 base = dvmAllocRegion(length, PROT_NONE, "dalvik-heap"); in dvmHeapSourceStartup()
506 if (base == NULL) { in dvmHeapSourceStartup()
513 msp = createMspace(base, startSize, absoluteMaxSize); in dvmHeapSourceStartup()
543 hs->heapBase = base; in dvmHeapSourceStartup()
549 if (!dvmHeapBitmapInit(&hs->liveBits, base, length, "dalvik-bitmap-1")) { in dvmHeapSourceStartup()
553 if (!dvmHeapBitmapInit(&hs->markBits, base, length, "dalvik-bitmap-2")) { in dvmHeapSourceStartup()
569 munmap(base, length); in dvmHeapSourceStartup()
702 uintptr_t base, uintptr_t max) { in aliasBitmap() argument
705 dst->base = base; in aliasBitmap()
707 dst->bitsLen = HB_OFFSET_TO_BYTE_INDEX(max - base) + sizeof(dst->bits); in aliasBitmap()
709 assert(base + HB_MAX_OFFSET(dst) > max); in aliasBitmap()
711 assert((base + HB_MAX_OFFSET(dst)) - max <= in aliasBitmap()
714 offset = base - src->base; in aliasBitmap()
729 uintptr_t base, max; in dvmHeapSourceGetObjectBitmaps() local
736 base = (uintptr_t)hs->heaps[i].base; in dvmHeapSourceGetObjectBitmaps()
739 aliasBitmap(&liveBits[i], &hs->liveBits, base, max); in dvmHeapSourceGetObjectBitmaps()
740 aliasBitmap(&markBits[i], &hs->markBits, base, max); in dvmHeapSourceGetObjectBitmaps()
780 assert(immuneLimit == gHs->heaps[0].base || in dvmMarkImmuneObjects()
782 assert(gHs->liveBits.base == gHs->markBits.base); in dvmMarkImmuneObjects()
785 assert(gHs->heaps[0].base >= immuneLimit); in dvmMarkImmuneObjects()
789 if (gHs->heaps[i].base < immuneLimit) { in dvmMarkImmuneObjects()
793 (uintptr_t)gHs->heaps[i].base - gHs->liveBits.base); in dvmMarkImmuneObjects()
799 gHs->heaps[i].limit - gHs->heaps[i].base); in dvmMarkImmuneObjects()
1887 return hs2heap(gHs)->base; in dvmHeapSourceGetImmuneLimit()