Lines Matching defs:ptr
75 if (munmap(chunk.ptr, chunk.size) != 0) {
77 << static_cast<const void*>(chunk.ptr) << " size=" << chunk.size;
126 // The free_by_start_ map contains disjoint intervals ordered by the `ptr`.
128 it->free_by_start_entry->ptr += size;
131 // The free_by_size_ map is ordered by the `size` and then `free_by_start_entry->ptr`.
132 // Adjusting the `ptr` above does not change that ordering but decreasing `size` can
149 return old_chunk.ptr;
155 SpaceChunk remainder = { new_chunk.ptr + size, new_chunk.size - size };
158 return new_chunk.ptr;
169 uint8_t* ptr = reinterpret_cast<uint8_t*>(
171 if (ptr == MAP_FAILED) {
180 SpaceChunk new_chunk = {ptr, next_part};
190 void SwapSpace::Free(void* ptr, size_t size) {
199 SpaceChunk chunk = { reinterpret_cast<uint8_t*>(ptr), size };
208 chunk.ptr -= prev->size;