Lines Matching refs:chunk
126 Chunk* chunk = new Chunk(map.Begin(), map.Size()); in AddMap() local
127 best_fit_allocs_.insert(chunk); in AddMap()
128 free_chunks_.insert(chunk); in AddMap()
142 for (Chunk* chunk : free_chunks_) { in ~GcVisitedArenaPool()
143 delete chunk; in ~GcVisitedArenaPool()
241 Chunk* chunk = *best_fit_iter; in AllocArena() local
242 DCHECK_EQ(chunk, *free_chunks_iter); in AllocArena()
244 if (chunk->size_ < 2 * size) { in AllocArena()
245 DCHECK_GE(chunk->size_, size); in AllocArena()
246 auto insert_result = allocated_arenas_.insert(new TrackedArena(chunk->addr_, in AllocArena()
247 chunk->size_, in AllocArena()
253 delete chunk; in AllocArena()
256 auto insert_result = allocated_arenas_.insert(new TrackedArena(chunk->addr_, in AllocArena()
270 DCHECK_EQ(free_chunks_nh.value()->addr_, chunk->addr_); in AllocArena()
304 Chunk* chunk = *iter; in FreeRangeLocked() local
305 size_t erase_res = best_fit_allocs_.erase(chunk); in FreeRangeLocked()
308 delete chunk; in FreeRangeLocked()
333 Chunk* chunk = new Chunk(range_begin, range_size); in FreeRangeLocked() local
334 free_chunks_.insert(next_iter, chunk); in FreeRangeLocked()
335 best_fit_allocs_.insert(chunk); in FreeRangeLocked()