wasm-micro-runtime/core/iwasm/fast-jit
YAMAMOTO Takashi 562a5dd1b6
Fix data/elem drop (#2747)
Currently, `data.drop` instruction is implemented by directly modifying the
underlying module. It breaks use cases where you have multiple instances
sharing a single loaded module. `elem.drop` has the same problem too.

This PR  fixes the issue by keeping track of which data/elem segments have
been dropped by using bitmaps for each module instances separately, and
add a sample to demonstrate the issue and make the CI run it.

Also add a missing check of dropped elements to the fast-jit `table.init`.

Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/2735
Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/2772
2023-11-18 08:50:16 +08:00
..
cg Implement Fast JIT multi-threading feature (#2134) 2023-04-20 10:09:34 +08:00
fe Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
asmjit_sgx_patch.diff Import WAMR Fast JIT (#1343) 2022-08-02 16:03:50 +08:00
iwasm_fast_jit.cmake Fix fast-jit build error (#2023) 2023-03-12 20:17:49 +08:00
jit_codecache.c Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
jit_codecache.h Import WAMR Fast JIT (#1343) 2022-08-02 16:03:50 +08:00
jit_codegen.c Import WAMR Fast JIT (#1343) 2022-08-02 16:03:50 +08:00
jit_codegen.h Implement Multi-tier JIT (#1774) 2022-12-19 11:24:46 +08:00
jit_compiler.c Enable running mode control for runtime and module instance (#1923) 2023-02-02 18:16:01 +08:00
jit_compiler.h Implement Multi-tier JIT (#1774) 2022-12-19 11:24:46 +08:00
jit_dump.c Implement Fast JIT multi-threading feature (#2134) 2023-04-20 10:09:34 +08:00
jit_dump.h Import WAMR Fast JIT (#1343) 2022-08-02 16:03:50 +08:00
jit_frontend.c Fix several typo/warning/unused-code issues (#2655) 2023-10-24 09:19:45 +08:00
jit_frontend.h Implement Fast JIT multi-threading feature (#2134) 2023-04-20 10:09:34 +08:00
jit_ir.c Implement Fast JIT multi-threading feature (#2134) 2023-04-20 10:09:34 +08:00
jit_ir.def Implement Fast JIT multi-threading feature (#2134) 2023-04-20 10:09:34 +08:00
jit_ir.h Implement Fast JIT multi-threading feature (#2134) 2023-04-20 10:09:34 +08:00
jit_regalloc.c Implement Fast JIT multi-threading feature (#2134) 2023-04-20 10:09:34 +08:00
jit_utils.h Remove unused JitBitmap (#2775) 2023-11-16 18:48:06 +08:00