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()
113 SpaceChunk old_chunk; in Alloc()
129 SpaceChunk new_chunk = { old_chunk.ptr + size, old_chunk.size - size }; in Alloc()
136 SwapSpace::SpaceChunk SwapSpace::NewFileChunk(size_t min_size) { in NewFileChunk()
154 SpaceChunk new_chunk = {ptr, next_part}; in NewFileChunk()
173 SpaceChunk chunk = { reinterpret_cast<uint8_t*>(ptr), size }; in Free()
Dswap_space.h47 struct SpaceChunk { struct
61 bool operator()(const SpaceChunk& a, const SpaceChunk& b) const { in operator() argument
66 typedef std::set<SpaceChunk, SortChunkByPtr> FreeByStartSet;
81 SpaceChunk NewFileChunk(size_t min_size) REQUIRES(lock_);
84 void InsertChunk(const SpaceChunk& chunk) REQUIRES(lock_);