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 grow_memory units #13

Merged
merged 1 commit into from
Oct 1, 2019
Merged

Fix grow_memory units #13

merged 1 commit into from
Oct 1, 2019

Conversation

geky
Copy link
Contributor

@geky geky commented Oct 1, 2019

I noticed this while measuring Wac's RAM usage. Great project by the way.

The allocated RAM was quadrupling when Wac hit a grow_memory instruction. It looks like the wrong allocation unit may have been used? Later in wa.c in load_module I noticed a uint8_t was used there suggesting this was a typo.

@kanaka kanaka merged commit 385e13c into kanaka:master Oct 1, 2019
@kanaka
Copy link
Owner

kanaka commented Oct 1, 2019

Silly mistake. Thanks for catching it!

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