Lines Matching refs:free_chunk
316 chunk_t* free_chunk = 0;
327 if ((!free_chunk) || (cur->size < free_chunk->size)) {
328 free_chunk = cur;
337 if (free_chunk) {
338 const size_t free_size = free_chunk->size;
339 free_chunk->free = 0;
340 free_chunk->size = size;
344 extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ;
346 chunk_t* split = new chunk_t(free_chunk->start, extra);
347 free_chunk->start += extra;
348 mList.insertBefore(free_chunk, split);
352 ((free_chunk->start*kMemoryAlign)&(pagesize-1)),
358 free_chunk->start + free_chunk->size, tail_free);
359 mList.insertAfter(free_chunk, split);
362 return (free_chunk->start)*kMemoryAlign;