Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement serialization of NativeCall reprs with dyncall
When a NativeCall using module is loaded both by the current computation unit and one of its dependencies, native subs may become repossessed. Repossession will clear the MVMNativeCallBody structure as this is supposed to be repopulated on deserialization. This did not happen causing segfaults when the generated function body tried to invoke the JIT compiled calling code. Fixed this by implementing serialization/deserialization of NativeCalls. On deserialization we will use the stored lib_name and sym_name to load the native library and also try to JIT compile the function body.
- Loading branch information
Showing
5 changed files
with
81 additions
and
24 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