memory-allocators icon indicating copy to clipboard operation
memory-allocators copied to clipboard

freelist allcoator bugfix

Open niu2x opened this issue 3 years ago • 0 comments

  1. when allocate memory: if rest < sizeof(Node), it should not insert to free list.
  2. when free memory: if free list head is nullptr, we should set head ptr.
  3. when free memory: free node ptr should offset padding bytes.

niu2x avatar Jul 18 '21 14:07 niu2x