Searched refs:free_chunk (Results 1 – 1 of 1) sorted by relevance
332 chunk_t* free_chunk = nullptr; in alloc() local343 if ((!free_chunk) || (cur->size < free_chunk->size)) { in alloc()344 free_chunk = cur; in alloc()353 if (free_chunk) { in alloc()354 const size_t free_size = free_chunk->size; in alloc()355 free_chunk->free = 0; in alloc()356 free_chunk->size = size; in alloc()360 extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()362 chunk_t* split = new chunk_t(free_chunk->start, extra); in alloc()363 free_chunk->start += extra; in alloc()[all …]