-
Notifications
You must be signed in to change notification settings - Fork 717
Add instruction metering #4122
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
Merged
Merged
Add instruction metering #4122
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ca78c66
feat: add instruction metering support with execution limit
AlixANNERAUD 8c262ba
fix: formatting
AlixANNERAUD 799cad6
fix: format
AlixANNERAUD 0dd7fe2
feat: initialize instruction execution limit in exec_env
AlixANNERAUD 422c8fb
fix: remove unnecessary backslash in macro definition
AlixANNERAUD 161c945
fix
AlixANNERAUD 5d34365
fix: correct function declaration for wasm_runtime_set_instruction_co…
AlixANNERAUD 41bbcb7
fix: format function declaration for wasm_runtime_set_bounds_checks
AlixANNERAUD a7d90eb
fix: format HANDLE_OP_END macro for better readability
AlixANNERAUD ad6ba3d
fix: update preprocessor directive for WASM_INSTRUCTION_METERING check
AlixANNERAUD 76392b5
fix: handle null exec_env in instruction metering checks
AlixANNERAUD e4ceb6b
fix: move instructions_to_execute field in WASMExecEnv (overwriten be…
AlixANNERAUD 70af781
fix: improve instruction limit checks and enhance readability of HAND…
AlixANNERAUD 0df05af
fix: simplify instruction limit checks for better readability
AlixANNERAUD 56526e9
fix: streamline HANDLE_OP macro definitions for improved readability
AlixANNERAUD 76c1448
fix: correct module parameter in instruction limit exception handling
AlixANNERAUD 446c52b
fix: improve formatting of CHECK_INSTRUCTION_LIMIT macro for better r…
AlixANNERAUD e1b0411
fix: remove unnecessary else clause in instruction limit checks for i…
AlixANNERAUD cb5975e
fix: update instruction limit checks to use else if for improved clarity
AlixANNERAUD 53c54b9
fix: update instruction metering configuration for consistency and cl…
AlixANNERAUD 44486c8
docs: add instruction metering section to build_wamr documentation
AlixANNERAUD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.