-
Notifications
You must be signed in to change notification settings - Fork 824
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
Metering. #450
Metering. #450
Conversation
bors try |
tryBuild failed |
bors try |
@@ -92,6 +92,8 @@ pub struct InternalCtx { | |||
|
|||
pub memory_base: *mut u8, | |||
pub memory_bound: usize, | |||
|
|||
pub internals: *mut [u64; INTERNALS_SIZE], // TODO: Make this dynamic? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider embedding array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Internals are intended to be statically allocated to middleware modules. I think a fixed-size array would be suitable for this case.
bors try |
tryMerge conflict |
bors try |
bors try |
481: Added context trampoline into runtime r=losfair a=syrusakbary Based on #450 Co-authored-by: losfair <[email protected]>
bors try |
bors r+ |
450: Metering. r=bjfish a=losfair TODO - [x] Add test to verify points used after function call - [x] Add test to verify function call will trap - [x] Add documentation Co-authored-by: losfair <[email protected]> Co-authored-by: Brandon Fish <[email protected]>
TODO