Skip to content

Commit 2ff38fd

Browse files
committed
test
1 parent 705c0ac commit 2ff38fd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

core/iwasm/common/wasm_c_api.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,26 +736,40 @@ wasm_store_new(wasm_engine_t *engine)
736736
void
737737
wasm_store_delete(wasm_store_t *store)
738738
{
739+
LOG_DEBUG("%s %d", __func__, __LINE__);
739740
if (!store) {
740741
return;
741742
}
742743

744+
LOG_DEBUG("%s %d", __func__, __LINE__);
743745
DEINIT_VEC(store->instances, wasm_instance_vec_delete);
746+
LOG_DEBUG("%s %d", __func__, __LINE__);
744747
DEINIT_VEC(store->modules, wasm_module_vec_delete);
748+
LOG_DEBUG("%s %d", __func__, __LINE__);
745749
if (store->foreigns) {
750+
LOG_DEBUG("%s %d", __func__, __LINE__);
746751
bh_vector_destroy(store->foreigns);
752+
LOG_DEBUG("%s %d", __func__, __LINE__);
747753
wasm_runtime_free(store->foreigns);
754+
LOG_DEBUG("%s %d", __func__, __LINE__);
748755
}
756+
LOG_DEBUG("%s %d", __func__, __LINE__);
749757

750758
wasm_runtime_free(store);
751759

760+
LOG_DEBUG("%s %d", __func__, __LINE__);
752761
if (decrease_thread_local_store_num(&singleton_engine->stores_by_tid,
753762
os_self_thread())) {
763+
LOG_DEBUG("%s %d", __func__, __LINE__);
754764
if (!retrieve_thread_local_store_num(&singleton_engine->stores_by_tid,
755765
os_self_thread())) {
766+
LOG_DEBUG("%s %d", __func__, __LINE__);
756767
wasm_runtime_destroy_thread_env();
768+
LOG_DEBUG("%s %d", __func__, __LINE__);
757769
}
770+
LOG_DEBUG("%s %d", __func__, __LINE__);
758771
}
772+
LOG_DEBUG("%s %d", __func__, __LINE__);
759773
}
760774

761775
/* Type Representations */

0 commit comments

Comments
 (0)