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

Access gas counter global variable instead of calling gr_gas_available to control stack/resucsion depth in wasm-gen #3465

Open
techraed opened this issue Nov 1, 2023 · 0 comments
Labels
C1-feature Feature request P2-sometimesoon Medium priority Q3-involved

Comments

@techraed
Copy link
Member

techraed commented Nov 1, 2023

This #3391 uses gr_gas_available syscall to get info about current gas consumption to decide whether we should return from that recursion/loop block or not. However, gr_gas_available costs more than reading global variable.

@techraed techraed added the C1-feature Feature request label Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C1-feature Feature request P2-sometimesoon Medium priority Q3-involved
Projects
None yet
Development

No branches or pull requests

1 participant