System/Heap (1) 썸네일형 리스트형 House of Force `malloc()`의 메모리 할당 과정/* finally, do the allocation */p = av->top;size = chunksize (p); /* check that one of the above allocation paths succeeded */if ((unsigned long) (size) >= (unsigned long) (nb + MINSIZE)) { remainder_size = size - nb; remainder = chunk_at_offset (p, nb); av->top = remainder; set_head (p, nb | PREV_INUSE | (av != &main_arena ? NON_MAIN_ARENA : 0)); set_head (r.. 이전 1 다음