Home
last modified time | relevance | path

Searched refs:SpaceChunk (Results 1 – 2 of 2) sorted by relevance

/art/compiler/utils/
Dswap_space.cc55 inline void SwapSpace::InsertChunk(const SpaceChunk& chunk) { in InsertChunk()
74 for (const SpaceChunk& chunk : free_by_start_) { in ~SwapSpace()
118 SpaceChunk old_chunk = *it->free_by_start_entry; in Alloc()
137 SpaceChunk new_chunk = NewFileChunk(size); in Alloc()
140 SpaceChunk remainder = { new_chunk.ptr + size, new_chunk.size - size }; in Alloc()
147 SwapSpace::SpaceChunk SwapSpace::NewFileChunk(size_t min_size) { in NewFileChunk()
165 SpaceChunk new_chunk = {ptr, next_part}; in NewFileChunk()
184 SpaceChunk chunk = { reinterpret_cast<uint8_t*>(ptr), size }; in Free()
Dswap_space.h48 struct SpaceChunk { struct
64 bool operator()(const SpaceChunk& a, const SpaceChunk& b) const { in operator() argument
69 typedef std::set<SpaceChunk, SortChunkByPtr> FreeByStartSet;
92 SpaceChunk NewFileChunk(size_t min_size) REQUIRES(lock_);
95 void InsertChunk(const SpaceChunk& chunk) REQUIRES(lock_);