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

Improve loop metering tests #5030

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

webmaster128
Copy link
Contributor

Description

I ran a few tests around metering the loop instruction, wondering if the accounting for Operator::Loop { .. } can be avoided. However, this is not the case as that would subtract everything before the loop for every iteration. So I ended up with a few more tests that might be helpful to show and harden loop metering behaviour for terminating and infinite loops.

@xdoardo xdoardo self-requested a review August 22, 2024 07:36
@xdoardo xdoardo self-assigned this Aug 23, 2024
@xdoardo
Copy link
Contributor

xdoardo commented Aug 23, 2024

LGTM!

@xdoardo xdoardo merged commit 0ac7dad into wasmerio:main Aug 23, 2024
62 of 63 checks passed
@webmaster128 webmaster128 deleted the loop-metering branch August 23, 2024 12:22
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