Skip to content

Commit 705c0ac

Browse files
committed
test
1 parent 11c773d commit 705c0ac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

core/iwasm/common/wasm_c_api.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,28 +350,43 @@ wasm_config_set_segue_flags(wasm_config_t *config, uint32 segue_flags)
350350
static void
351351
wasm_engine_delete_internal(wasm_engine_t *engine)
352352
{
353+
LOG_DEBUG("%s %d", __func__, __LINE__);
353354
if (engine) {
354355
/* clean all created wasm_module_t and their locks */
355356
unsigned i;
356357

358+
LOG_DEBUG("%s %d", __func__, __LINE__);
357359
for (i = 0; i < engine->modules.num_elems; i++) {
360+
LOG_DEBUG("%s %d %d/%d", __func__, __LINE__, i,
361+
engine->modules.num_elems);
358362
wasm_module_ex_t *module;
363+
LOG_DEBUG("%s %d", __func__, __LINE__);
359364
if (bh_vector_get(&engine->modules, i, &module)) {
365+
LOG_DEBUG("%s %d", __func__, __LINE__);
360366
os_mutex_destroy(&module->lock);
367+
LOG_DEBUG("%s %d", __func__, __LINE__);
361368
wasm_runtime_free(module);
369+
LOG_DEBUG("%s %d", __func__, __LINE__);
362370
}
371+
LOG_DEBUG("%s %d", __func__, __LINE__);
363372
}
373+
LOG_DEBUG("%s %d", __func__, __LINE__);
364374

365375
bh_vector_destroy(&engine->modules);
366376

377+
LOG_DEBUG("%s %d", __func__, __LINE__);
367378
#ifndef os_thread_local_attribute
368379
bh_vector_destroy(&engine->stores_by_tid);
369380
#endif
370381

382+
LOG_DEBUG("%s %d", __func__, __LINE__);
371383
wasm_runtime_free(engine);
384+
LOG_DEBUG("%s %d", __func__, __LINE__);
372385
}
373386

387+
LOG_DEBUG("%s %d", __func__, __LINE__);
374388
wasm_runtime_destroy();
389+
LOG_DEBUG("%s %d", __func__, __LINE__);
375390
}
376391

377392
static wasm_engine_t *

0 commit comments

Comments
 (0)