Disconnects Store state fields from Compiler (#1761)
* Moves CodeMemory, VMInterrupts and SignatureRegistry from Compiler * CompiledModule holds CodeMemory and GdbJitImageRegistration * Store keeps track of its JIT code * Makes "jit_int.rs" stuff Send+Sync * Adds the threads example.
This commit is contained in:
@@ -18,7 +18,7 @@ fn main() -> Result<()> {
|
||||
wasi.add_to_linker(&mut linker)?;
|
||||
|
||||
// Instantiate our module with the imports we've created, and run it.
|
||||
let module = Module::from_file(&store, "target/wasm32-wasi/debug/wasi.wasm")?;
|
||||
let module = Module::from_file(store.engine(), "target/wasm32-wasi/debug/wasi.wasm")?;
|
||||
linker.module("", &module)?;
|
||||
linker.get_default("")?.get0::<()>()?()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user