Skip to content

Instantly share code, notes, and snippets.

@H4niz
Last active January 5, 2018 18:01
Show Gist options
  • Save H4niz/5d6422df96534dafecb2b05a582db279 to your computer and use it in GitHub Desktop.
Save H4niz/5d6422df96534dafecb2b05a582db279 to your computer and use it in GitHub Desktop.
struct malloc_chunk {
INTERNAL_SIZE_T prev_size; //size of prev_chunk
INTERNAL_SIZE_T size; // size of chunk
/* Only use if free*/
struct malloc_chunk *fd; //point to nextchunk
struct malloc_chunk *bk; //point to backchunk
/*Use for large chunk*/
struct malloc_chunk *fd_nextsize;
struct malloc_chunk *bk_nextsize;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment