Searched refs:SpaceChunk (Results 1 – 2 of 2) sorted by relevance
56 inline void SwapSpace::InsertChunk(const SpaceChunk& chunk) { in InsertChunk()75 for (const SpaceChunk& chunk : free_by_start_) { in ~SwapSpace()119 SpaceChunk old_chunk = *it->free_by_start_entry; in Alloc()138 SpaceChunk new_chunk = NewFileChunk(size); in Alloc()141 SpaceChunk remainder = { new_chunk.ptr + size, new_chunk.size - size }; in Alloc()148 SwapSpace::SpaceChunk SwapSpace::NewFileChunk(size_t min_size) { in NewFileChunk()167 SpaceChunk new_chunk = {ptr, next_part}; in NewFileChunk()186 SpaceChunk chunk = { reinterpret_cast<uint8_t*>(ptr), size }; in Free()
49 struct SpaceChunk { struct65 bool operator()(const SpaceChunk& a, const SpaceChunk& b) const { in operator() argument70 using FreeByStartSet = std::set<SpaceChunk, SortChunkByPtr>;93 SpaceChunk NewFileChunk(size_t min_size) REQUIRES(lock_);96 void InsertChunk(const SpaceChunk& chunk) REQUIRES(lock_);