bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.66k stars 577 forks source link

aot compiler: a wrong assumption on suspend_flags #3574

Open yamt opened 6 days ago

yamt commented 6 days ago

check_suspend_flags() doesn't insert the logic to check suspend_flags unless the module's default memory is marked "shared". while the heuristic works fine for common cases, it's wrong because: