Record the store number of current thread with struct thread_local_stores or tls thread_local_stores_num to fix the issue: - Only call wasm_runtime_init_thread_env() in the first wasm_store_new of current thread - Only call wasm_runtime_destroy_thread_env() in the last wasm_store_delete of current thread And remove the unused store list in the engine.
The file is empty.