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

fix: fixed allocation calculation #113

Merged
merged 1 commit into from Apr 4, 2022
Merged

fix: fixed allocation calculation #113

merged 1 commit into from Apr 4, 2022

Conversation

guybedford
Copy link
Owner

A further asm.js memory allocation fix - the initial stack allocation should be constant based on the allocation bound being chosen, and not at all depending on the source size as the memory will be shared for other sources for efficiency. Previously, parsing a small string followed by a long string would underallocate the initial buffer and then overflow for the next parser operation!

This should finally be stability on these issues for now.

@guybedford guybedford merged commit 057b19f into main Apr 4, 2022
@guybedford guybedford deleted the alloc branch April 4, 2022 10:34
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