-
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
Move function call trampolines to Artifact instead of EngineInner. #1710
Conversation
Work in progress.
Use Option<VMTrampoline> which should be ffi-compatible. Put the register_signature and lookup_signature functions back on the Engine.
Some cleanup per cargo clippy.
Clean up some commented out code.
Remove parts of this test not relevant to the failure.
This reverts commit e6801dd.
At the moment this only happens from lib/deprecated.
Correct a comment. Co-authored-by: Syrus Akbary <[email protected]>
This way the code stays alive as long as the store is alive. Fixes segfault in traps::present_after_module_drop.
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.
We can also delete the engine register_signature
.
And with a bit more effort, we could do the lookup_signature
as well
Thoughts @nlewycky ?
I tried removing them while making this PR, then had to put them back. We still need a single signature index across all Instances in the same Store. I can investigate trying again once this PR has landed. |
I believe |
wasmer/lib/api/src/externals/function.rs Line 379 in ff15be3
|
bors try |
tryBuild succeeded: |
bors r+ |
Build succeeded: |
Description
Move function call trampolines to Artifact instead of EngineInner.
Review