Home
last modified time | relevance | path

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

/art/compiler/utils/
Dswap_space.cc54 inline void SwapSpace::InsertChunk(const SpaceChunk& chunk) { in InsertChunk()
73 for (const SpaceChunk& chunk : free_by_start_) { in ~SwapSpace()
118 SpaceChunk old_chunk = *entry; in Alloc()
151 SpaceChunk new_chunk = NewFileChunk(size); in Alloc()
154 SpaceChunk remainder = { new_chunk.ptr + size, new_chunk.size - size }; in Alloc()
161 SwapSpace::SpaceChunk SwapSpace::NewFileChunk(size_t min_size) { in NewFileChunk()
179 SpaceChunk new_chunk = {ptr, next_part}; in NewFileChunk()
198 SpaceChunk chunk = { reinterpret_cast<uint8_t*>(ptr), size }; in Free()
Dswap_space.h47 struct SpaceChunk { struct
63 bool operator()(const SpaceChunk& a, const SpaceChunk& b) const { in operator() argument
68 typedef std::set<SpaceChunk, SortChunkByPtr> FreeByStartSet;
91 SpaceChunk NewFileChunk(size_t min_size) REQUIRES(lock_);
94 void InsertChunk(const SpaceChunk& chunk) REQUIRES(lock_);