Save exit Wasm FP and PC in component-to-host trampolines (#4601)
* Wasmtime: Add a pointer to `VMRuntimeLimits` in component contexts * Save exit Wasm FP and PC in component-to-host trampolines Fixes #4535 * Add comment about why we deref the trampoline's FP * Update some tests to use new `vmruntime_limits_*` methods
This commit is contained in:
@@ -367,6 +367,8 @@ impl ComponentInstance {
|
||||
unsafe fn initialize_vmctx(&mut self, store: *mut dyn Store) {
|
||||
*self.vmctx_plus_offset(self.offsets.magic()) = VMCOMPONENT_MAGIC;
|
||||
*self.vmctx_plus_offset(self.offsets.store()) = store;
|
||||
*self.vmctx_plus_offset(self.offsets.limits()) = (*store).vmruntime_limits();
|
||||
|
||||
for i in 0..self.offsets.num_runtime_component_instances {
|
||||
let i = RuntimeComponentInstanceIndex::from_u32(i);
|
||||
let mut def = VMGlobalDefinition::new();
|
||||
|
||||
Reference in New Issue
Block a user