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

Adapt to ResourceLimiter, replacing mem_fuel metering #950

Merged
merged 3 commits into from
Jul 14, 2023

Conversation

jayz22
Copy link
Contributor

@jayz22 jayz22 commented Jul 14, 2023

What

Resolves #896

This is attempt 2. Follows up on #946 (review)

Make the host a ResourceLimiter, such that the entire memory budget is available to the Vm linear memory.
Also hardcodes several other limits as WASMI_LIMITS_CONFIG, hopefully we won't need to change them ever.
This is a superior approach to #946, both in terms of functional (dynamic memory limit) and cleanness (does not require changing the StoreData).

Why

[TODO: Why this change is being made. Include any context required to understand the why.]

Known limitations

[TODO or N/A]

@jayz22 jayz22 requested review from graydon, sisuresh and a team as code owners July 14, 2023 21:45
@graydon
Copy link
Contributor

graydon commented Jul 14, 2023

Great work, thanks!

@graydon graydon merged commit bd7b935 into stellar:main Jul 14, 2023
8 checks passed
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.

[test] Ensure data segment and user-defined memories can't exceed memory budget limit
2 participants