Skip to content

Handle blocks larger than MAXSIZE in TLSF #1763

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
Mar 29, 2021
Merged

Handle blocks larger than MAXSIZE in TLSF #1763

merged 2 commits into from
Mar 29, 2021

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Mar 28, 2021

The memory manager didn't account for blocks larger than MAXSIZE in all cases, which can happen for example when adding >1GB of initial memory to a module or, theoretically, when merging blocks where memory grew to >1GB . Instead of splitting defensively, which would require extra logic, this change always uses the last list for oversized blocks (these are split anyway before use) while also getting rid of two branches previously guarding for this case when attempting to merge.

fixes #1746

  • I've read the contributing guidelines

@dcodeIO dcodeIO requested a review from MaxGraey March 29, 2021 13:38
@dcodeIO dcodeIO merged commit de2845b into master Mar 29, 2021
@dcodeIO dcodeIO deleted the issue-1746 branch June 1, 2021 15:20
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.

GC assertion using "big" WebAssembly.Memory object
2 participants