Lines Matching refs:uintptr_t
398 MALLOC_ASSERT((uintptr_t)object - (uintptr_t)this >= sizeof(Block), msg); in checkFreePrecond()
892 …bootStrapBlock->bumpPtr = (FreeObject *)((uintptr_t)bootStrapBlock->bumpPtr - bootStrapBlock->obje… in allocate()
893 if ((uintptr_t)bootStrapBlock->bumpPtr < (uintptr_t)bootStrapBlock+sizeof(Block)) { in allocate()
1030 for (int j=0; j<num; b=(Block*)((uintptr_t)b+slabSize), j++) in getEmptyBlock()
1037 for (int i=0; i<num; b=(Block*)((uintptr_t)b+slabSize), i++) { in getEmptyBlock()
1370 bumpPtr = (FreeObject *)((uintptr_t)this + slabSize - objectSize); in restoreBumpPtr()
1587 bumpPtr = (FreeObject *)((uintptr_t)this + slabSize - objectSize); in initEmptyBlock()
1725 bumpPtr = (FreeObject *)((uintptr_t)this + slabSize); in reset()
1838 return slabSize - ((uintptr_t)bumpPtr - (uintptr_t)this); in availableSize()
1864 block->bumpPtr = (FreeObject *)((uintptr_t)block + sizeof(StartupBlock)); in getBlock()
1894 (FreeObject *)((uintptr_t)firstStartupBlock->bumpPtr + reqSize); in allocate()
1911 MALLOC_ASSERT((uintptr_t)ptr>=(uintptr_t)this+sizeof(StartupBlock) in free()
1912 && (uintptr_t)ptr+StartupBlock::msize(ptr)<=(uintptr_t)this+slabSize, in free()
1922 } else if ((uintptr_t)ptr + StartupBlock::msize(ptr) == (uintptr_t)bumpPtr) { in free()
1925 MALLOC_ASSERT((uintptr_t)newBump>(uintptr_t)this+sizeof(StartupBlock), in free()
2028 sizeof(Block), sizeof(uintptr_t) )); in initMemoryManager()
2126 bumpPtr = (FreeObject *) ((uintptr_t) bumpPtr - objectSize); in allocateFromBumpPtr()
2127 if ( (uintptr_t)bumpPtr < (uintptr_t)this+sizeof(Block) ) { in allocateFromBumpPtr()
2170 blSize - ((uintptr_t)object - (uintptr_t)findObjectToFree(object)); in findObjectSize()
2303 void *alignedArea = (void*)alignUp((uintptr_t)lmb+headersSize, alignment); in getFromLLOCache()
2304 uintptr_t alignedRight = in getFromLLOCache()
2305 alignDown((uintptr_t)lmb+lmb->unalignedSize - size, alignment); in getFromLLOCache()
2308 unsigned ptrDelta = alignedRight - (uintptr_t)alignedArea; in getFromLLOCache()
2322 alignedArea = (void*)((uintptr_t)alignedArea + offset*alignment); in getFromLLOCache()
2324 MALLOC_ASSERT((uintptr_t)lmb+lmb->unalignedSize >= in getFromLLOCache()
2325 (uintptr_t)alignedArea+size, "Object doesn't fit the block."); in getFromLLOCache()
2408 copySize = lmb->unalignedSize-((uintptr_t)ptr-(uintptr_t)lmb); in reallocAligned()
2458 return 0 == ((uintptr_t)this + slabSize - (uintptr_t)object) % objectSize; in isProperlyPlaced()
2466 uint16_t offset = (uintptr_t)this + slabSize - (uintptr_t)address; in findAllocatedObject()
2471 return (FreeObject*)((uintptr_t)address - (offset? objectSize-offset: 0)); in findAllocatedObject()
2508 && (uintptr_t)header->memoryBlock < (uintptr_t)header in isLargeObject()