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

Allocated blocks should keep rounded size #4

Open
tannewt opened this issue Mar 5, 2024 · 0 comments
Open

Allocated blocks should keep rounded size #4

tannewt opened this issue Mar 5, 2024 · 0 comments

Comments

@tannewt
Copy link

tannewt commented Mar 5, 2024

I found a bug with the mattconte implementation that is in this implementation as well. espressif/tlsf#2

Basically, allocated blocks need to be the rounded size so that they get freed to the same place they were searched for first. Otherwise, you may not be able to free a block and then re-allocate to the same location even if the sizes are the same.

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

No branches or pull requests

1 participant