mtrebi / memory-allocators

Custom memory allocators in C++ to improve the performance of dynamic memory allocation
MIT License
1.75k stars 160 forks source link

freelist allcoator bugfix #23

Open niu2x opened 3 years ago

niu2x commented 3 years ago
  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.