-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for
ResourceLimiter
API (#737)
* Sketch of support for ResourceLimiter API * Address review comments. * Handle the 3 separate ResourceLimiter response types more correctly. * Fix typo in existing error message. * Add StoreLimits, StoreLimitsBuilder and docs from wasmtime. * Fix unused-variable warnings. * Conditionalize ResourceLimiter on cfg(feature="std") * Add ResourceLimiter test and fix bugs it uncovered. * Avoid redundant limit and size storage in previous wasmtime-like design. * Thread an ever-so-smaller &mut ResourceLimiterRef into the Executor * Support no_std differently (import alloc::boxed::Box) * Avoid storing &ResourceLimiterRef in Executor (maybe breaks SROA?) * Fix no_std a little harder. * Restore TableError::GrowOutOfBounds fields * Remove now-redundant pub(crate) * Remove unnecessary cfg guard on alloc::boxed::Box * Address clippy warnings * Fix doc reference. * Some cleanups as requested in review. * Fix wasmi_core doc-link to wasmi, deps do not go that way. * Fix s/State/Store/ doc typo * Add docs on Store::limiter * Fix new nightly clippy nit
- Loading branch information
Showing
16 changed files
with
861 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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.