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

disable sbrk and emulate EVM linear memory internally #76

Merged
merged 6 commits into from
Oct 14, 2024

Conversation

xermicus
Copy link
Member

@xermicus xermicus commented Oct 10, 2024

This PR gets rid of calling the PVM sbrk functionality because it was disabled in the pallet. Instead we emulate the EVM linear memory heap internally with a static memory buffer.

I also changed the memory tests to run differentially; I found no reason why we our linear memory implementation needs to differ in intentional ways.

Max mem size is initially set conservatively to 64kb.

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus xermicus requested a review from wpt967 October 10, 2024 23:57
Copy link
Collaborator

@wpt967 wpt967 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xermicus xermicus merged commit f0f344a into main Oct 14, 2024
2 checks passed
@xermicus xermicus deleted the cl/disable-sbkr branch October 14, 2024 13: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.

2 participants