Home | History | Annotate | Download | only in alloc

Lines Matching defs:BLOCK_SIZE

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