Lines Matching refs:chunk_t
142 struct chunk_t { struct in android::SimpleBestFitAllocator
143 chunk_t(size_t start, size_t size) in chunk_t() function
149 mutable chunk_t* prev; argument
150 mutable chunk_t* next; argument
154 chunk_t* dealloc(size_t start);
160 LinkedList<chunk_t> mList;
285 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in SimpleBestFitAllocator()
292 chunk_t* removed = mList.remove(mList.head()); in ~SimpleBestFitAllocator()
319 chunk_t const * const freed = dealloc(offset); in deallocate()
332 chunk_t* free_chunk = nullptr; in alloc()
333 chunk_t* cur = mList.head(); in alloc()
362 chunk_t* split = new chunk_t(free_chunk->start, extra); in alloc()
373 chunk_t* split = new chunk_t( in alloc()
383 SimpleBestFitAllocator::chunk_t* SimpleBestFitAllocator::dealloc(size_t start) in dealloc()
386 chunk_t* cur = mList.head(); in dealloc()
394 chunk_t* freed = cur; in dealloc()
397 chunk_t* const p = cur->prev; in dealloc()
398 chunk_t* const n = cur->next; in dealloc()
449 chunk_t const* cur = mList.head(); in dump_l()