Searched refs:hb (Results 1 – 3 of 3) sorted by relevance
/dalvik/vm/alloc/TEST/HeapBitmapTest/ |
D | main.c | 25 HeapBitmap hb; in test_init() local 28 memset(&hb, 0x55, sizeof(hb)); in test_init() 30 ok = dvmHeapBitmapInit(&hb, HEAP_BASE, HEAP_SIZE, "test"); in test_init() 33 assert(hb.bits != NULL); in test_init() 34 assert(hb.bitsLen >= HB_OFFSET_TO_INDEX(HEAP_SIZE)); in test_init() 35 assert(hb.base == (uintptr_t)HEAP_BASE); in test_init() 36 assert(hb.max < hb.base); in test_init() 40 *hb.bits = 0x55; in test_init() 41 assert(*hb.bits = 0x55); in test_init() 42 *hb.bits = 0; in test_init() [all …]
|
/dalvik/vm/alloc/ |
D | HeapBitmap.h | 92 bool dvmHeapBitmapInit(HeapBitmap *hb, const void *base, size_t maxSize, 98 void dvmHeapBitmapDelete(HeapBitmap *hb); 104 void dvmHeapBitmapZero(HeapBitmap *hb); 194 dvmHeapBitmapCoversAddress(const HeapBitmap *hb, const void *obj) in HB_INLINE_PROTO() argument 197 assert(hb != NULL); in HB_INLINE_PROTO() 200 const uintptr_t offset = (uintptr_t)obj - hb->base; in HB_INLINE_PROTO() 202 return index < hb->bitsLen / sizeof(*hb->bits); in HB_INLINE_PROTO() 212 _heapBitmapModifyObjectBit(HeapBitmap *hb, const void *obj, in HB_INLINE_PROTO() argument 216 const uintptr_t offset = (uintptr_t)obj - hb->base; in HB_INLINE_PROTO() 220 assert(hb->bits != NULL); in HB_INLINE_PROTO() [all …]
|
D | HeapBitmap.c | 28 dvmHeapBitmapInit(HeapBitmap *hb, const void *base, size_t maxSize, in dvmHeapBitmapInit() argument 34 assert(hb != NULL); in dvmHeapBitmapInit() 36 bitsLen = HB_OFFSET_TO_INDEX(maxSize) * sizeof(*hb->bits); in dvmHeapBitmapInit() 42 hb->bits = bits; in dvmHeapBitmapInit() 43 hb->bitsLen = hb->allocLen = bitsLen; in dvmHeapBitmapInit() 44 hb->base = (uintptr_t)base; in dvmHeapBitmapInit() 45 hb->max = hb->base - 1; in dvmHeapBitmapInit() 53 dvmHeapBitmapDelete(HeapBitmap *hb) in dvmHeapBitmapDelete() argument 55 assert(hb != NULL); in dvmHeapBitmapDelete() 57 if (hb->bits != NULL) { in dvmHeapBitmapDelete() [all …]
|