Small refactor on WASMModuleInstance and fix Go/Python language bindings (#3227)
- Merge unused field `used_to_be_wasi_ctx` in `AOTModuleInstance` into `reserved` area
- Add field `memory_lock` in `WASMMemoryInstance` for future refactor
- Go binding: fix type error
https://github.com/bytecodealliance/wasm-micro-runtime/issues/3220
- Python binding:
type annotation uses the union operator "|", which requires Python version >=3.10
This commit is contained in:
@ -48,11 +48,11 @@ bh_static_assert(offsetof(AOTModuleInstance, func_type_indexes)
|
||||
bh_static_assert(offsetof(AOTModuleInstance, cur_exception)
|
||||
== 13 * sizeof(uint64));
|
||||
bh_static_assert(offsetof(AOTModuleInstance, c_api_func_imports)
|
||||
== 13 * sizeof(uint64) + 128 + 8 * sizeof(uint64));
|
||||
== 13 * sizeof(uint64) + 128 + 7 * sizeof(uint64));
|
||||
bh_static_assert(offsetof(AOTModuleInstance, global_table_data)
|
||||
== 13 * sizeof(uint64) + 128 + 14 * sizeof(uint64));
|
||||
|
||||
bh_static_assert(sizeof(AOTMemoryInstance) == 112);
|
||||
bh_static_assert(sizeof(AOTMemoryInstance) == 120);
|
||||
bh_static_assert(offsetof(AOTTableInstance, elems) == 24);
|
||||
|
||||
bh_static_assert(offsetof(AOTModuleInstanceExtra, stack_sizes) == 0);
|
||||
|
||||
Reference in New Issue
Block a user