Home
last modified time | relevance | path

Searched refs:hb2 (Results 1 – 3 of 3) sorted by relevance

/dalvik/vm/alloc/
DHeapBitmap.c182 dvmHeapBitmapXorWalk(const HeapBitmap *hb1, const HeapBitmap *hb2, in dvmHeapBitmapXorWalk() argument
232 assert(hb2 != NULL); in dvmHeapBitmapXorWalk()
233 assert(hb2->bits != NULL); in dvmHeapBitmapXorWalk()
236 if (hb1->base != hb2->base) { in dvmHeapBitmapXorWalk()
239 (uintptr_t)hb1->base, (uintptr_t)hb2->base); in dvmHeapBitmapXorWalk()
242 if (hb1->bitsLen != hb2->bitsLen) { in dvmHeapBitmapXorWalk()
244 hb1->bitsLen, hb2->bitsLen); in dvmHeapBitmapXorWalk()
247 if (hb1->max < hb1->base && hb2->max < hb2->base) { in dvmHeapBitmapXorWalk()
255 if (hb1->max >= hb1->base && hb2->max >= hb2->base) { in dvmHeapBitmapXorWalk()
259 offset = ((hb1->max < hb2->max) ? hb1->max : hb2->max) - hb1->base; in dvmHeapBitmapXorWalk()
[all …]
DHeapBitmap.h122 bool dvmHeapBitmapXorWalk(const HeapBitmap *hb1, const HeapBitmap *hb2,
/dalvik/vm/alloc/TEST/HeapBitmapTest/
Dmain.c390 HeapBitmap hb1, hb2; in run_xor() local
395 ok = dvmHeapBitmapInitFromTemplate(&hb2, &hb1, "test2"); in run_xor()
401 ok = dvmHeapBitmapXorWalk(&hb1, &hb2, xorCallback, gCallbackArg); in run_xor()
409 ok = dvmHeapBitmapXorWalk(&hb1, &hb2, xorCallback, gCallbackArg); in run_xor()
415 dvmHeapBitmapSetObjectBit(&hb2, (void *)base); in run_xor()
416 ok = dvmHeapBitmapXorWalk(&hb1, &hb2, xorCallback, gCallbackArg); in run_xor()
423 dvmHeapBitmapZero(&hb2); in run_xor()
424 assert_empty(&hb2); in run_xor()
434 ok = dvmHeapBitmapXorWalk(&hb1, &hb2, xorCallback, gCallbackArg); in run_xor()
440 dvmHeapBitmapSetObjectBit(&hb2, gXorPtrs[i]); in run_xor()
[all …]