Skip to content

Fix TLSF failing on certain sizes when implicitly growing memory #706

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

Merged
merged 2 commits into from
Jul 6, 2019

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jul 4, 2019

See #701

What happened here is that growMemory was called with the size of the next allocation, but it didn't make sure that such an allocation will actually succeed, leading to searchBlock searching another list for certain sizes, in turn not finding a block before hitting the respective assertion.

Unfortunately, I don't see a good way to test this except compiling thousands of modules with incrementing initial allocations since this depends on memory being grown. Maybe someone else has an idea? :)

@dcodeIO dcodeIO merged commit 678593d into master Jul 6, 2019
@dcodeIO dcodeIO deleted the fix-701 branch September 20, 2019 09:08
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.

2 participants