Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freelist allcoator bugfix #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

freelist allcoator bugfix #23

wants to merge 1 commit into from

Conversation

niu2x
Copy link

@niu2x niu2x commented Jul 18, 2021

  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.

1. when allocate memory:  if rest < sizeof(Node), it should not insert to free list.
2. when free memory:  a. if free list head is nullptr, we should set head ptr.  b. free node ptr should offset padding bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant