Lines Matching refs:BLOCK_SIZE
157 enum { BLOCK_SIZE = 1 << BLOCK_SHIFT }; enumerator
337 addr = &heapSource->blockBase[i*BLOCK_SIZE]; in allocateBlocks()
338 memset(addr, 0, blocks*BLOCK_SIZE); in allocateBlocks()
373 addr = (u1 *) (((uintptr_t) heapSource->baseBlock + block) * BLOCK_SIZE); in blockToAddress()
385 addr = heapSource->blockBase + block*BLOCK_SIZE; in clearBlock()
386 memset(addr, 0xCC, BLOCK_SIZE); in clearBlock()
387 for (i = 0; i < BLOCK_SIZE; i += 8) { in clearBlock()
415 LOG_SCAV("freed %zu blocks (%zu bytes)", count, count*BLOCK_SIZE); in clearFromSpace()
467 heapSource->minimumSize = alignUp(startSize, BLOCK_SIZE); in dvmHeapSourceStartup()
468 heapSource->maximumSize = alignUp(absoluteMaxSize, BLOCK_SIZE); in dvmHeapSourceStartup()
481 assert(heapSource->totalBlocks = heapSource->maximumSize / BLOCK_SIZE); in dvmHeapSourceStartup()
506 heapSource->allocLimit = heapSource->allocPtr + BLOCK_SIZE; in dvmHeapSourceStartup()
632 if (aligned <= BLOCK_SIZE) { in dvmHeapSourceAlloc()
635 heapSource->allocLimit = addr + BLOCK_SIZE; in dvmHeapSourceAlloc()
645 blocks = alignUp(aligned, BLOCK_SIZE) / BLOCK_SIZE; in dvmHeapSourceAlloc()
829 *total = heapSource->totalBlocks*BLOCK_SIZE; in room()
830 *alloc = heapSource->allocBlocks*BLOCK_SIZE; in room()
1965 end = cursor + BLOCK_SIZE; in scavengeBlock()
2022 end = cursor + BLOCK_SIZE; in verifyBlock()
2218 gDvm.gcHeap->heapSource->allocLimit = gDvm.gcHeap->heapSource->allocPtr + BLOCK_SIZE; in dvmScavengeRoots()