Home | History | Annotate | Download | only in binder

Lines Matching full:free_chunk

312     chunk_t* free_chunk = 0;
323 if ((!free_chunk) || (cur->size < free_chunk->size)) {
324 free_chunk = cur;
333 if (free_chunk) {
334 const size_t free_size = free_chunk->size;
335 free_chunk->free = 0;
336 free_chunk->size = size;
340 extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ;
342 chunk_t* split = new chunk_t(free_chunk->start, extra);
343 free_chunk->start += extra;
344 mList.insertBefore(free_chunk, split);
348 ((free_chunk->start*kMemoryAlign)&(pagesize-1)),
354 free_chunk->start + free_chunk->size, tail_free);
355 mList.insertAfter(free_chunk, split);
358 return (free_chunk->start)*kMemoryAlign;