Lines Matching refs:ptr
75 if (munmap(chunk.ptr, chunk.size) != 0) { in ~SwapSpace()
77 << static_cast<const void*>(chunk.ptr) << " size=" << chunk.size; in ~SwapSpace()
127 it->free_by_start_entry->ptr += size; in Alloc()
134 return old_chunk.ptr; in Alloc()
140 SpaceChunk remainder = { new_chunk.ptr + size, new_chunk.size - size }; in Alloc()
143 return new_chunk.ptr; in Alloc()
154 uint8_t* ptr = reinterpret_cast<uint8_t*>( in NewFileChunk() local
156 if (ptr == MAP_FAILED) { in NewFileChunk()
165 SpaceChunk new_chunk = {ptr, next_part}; in NewFileChunk()
175 void SwapSpace::Free(void* ptr, size_t size) { in Free() argument
184 SpaceChunk chunk = { reinterpret_cast<uint8_t*>(ptr), size }; in Free()
193 chunk.ptr -= prev->size; in Free()