본문 바로가기

Heap analysis/glibc 2.23

(glibc 2.23) malloc_consolidate

전체 코드 아래 더보기

 

인자 및 변수


static void malloc_consolidate(mstate av)
{
  mfastbinptr*    fb;                 /* current fastbin being consolidated */
  mfastbinptr*    maxfb;              /* last fastbin (for loop control) */
  mchunkptr       p;                  /* current chunk being consolidated */
  mchunkptr       nextp;              /* next chunk to consolidate */
  mchunkptr       unsorted_bin;       /* bin header */
  mchunkptr       first_unsorted;     /* chunk to link to */

  /* These have same use as in free() */
  mchunkptr       nextchunk;
  INTERNAL_SIZE_T size;
  INTERNAL_SIZE_T nextsize;
  INTERNAL_SIZE_T prevsize;
  int             nextinuse;
  mchunkptr       bck;
  mchunkptr       fwd;
  • av : 현재 아레나
  • fb
  • maxfb
  • p
  • nextp
  • unsorted_bin
  • first_unsorted
  • first_unsorted
  • nextchunk
  • size
  • nextsize
  • prevsize
  • nextinuse
  • bck
  • fwd

'Heap analysis > glibc 2.23' 카테고리의 다른 글

(glibc 2.23) _int_malloc  (0) 2022.04.25
(glibc 2.23) malloc  (0) 2022.04.25
(glibc 2.23) _int_free  (0) 2022.04.25
(glibc 2.23) unlink  (0) 2022.04.22
(glibc 2.23)check_malloced_chunk  (0) 2022.03.30