-
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
Added LinearMemory trait #3119
Added LinearMemory trait #3119
Conversation
@ptitSeb can you add tests using a custom memory implementation? |
@ptitSeb I think we want the custom memory to be used from the Tunables to make sure the wasmer API is well-rounded so people can use it properly |
lib/api/src/sys/tunables.rs
Outdated
_vm_definition_location: NonNull<VMMemoryDefinition>, | ||
) -> Result<VMMemory, MemoryError> { | ||
let memory = VMTinyMemory::new().unwrap(); | ||
Ok(VMMemory::from_custom(memory)) |
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.
Can we do Ok(memory.into())
(as I believe the From
is implemented)
bors r+ |
Build succeeded: |
Added LinearMemory trait, to describe memory used in runtime.