logs modified

pull/378/head
adroitx 2 years ago
parent 7f5e56dbe4
commit 244c2ddb6f

@ -212,7 +212,7 @@ module_allocate_linear_memory(struct module *module)
static inline void
module_free_linear_memory(struct module *module, struct wasm_memory *memory)
{
debuglog("Sandbox freeing %d memory\n", (int32_t)memory->size);
debuglog("Sandbox free memory with memory %d and capacity %d\n", memory->abi->size, memory->abi->capacity);
wasm_memory_reinit(memory, module->abi.starting_pages * WASM_PAGE_SIZE);
wasm_memory_pool_add_nolock(&module->pools[worker_thread_idx].memory, memory);
}

@ -38,7 +38,7 @@ sandbox_allocate_linear_memory(struct sandbox *sandbox)
sandbox->memory = module_allocate_linear_memory(sandbox->module);
if (unlikely(sandbox->memory == NULL)) return -1;
debuglog("Sandbox %lu: of %s %s\n", sandbox->id, sandbox->tenant->name, sandbox->route->route);
debuglog("Sandbox initialized with memory %d\n", (int32_t)sandbox->memory->size);
debuglog("Sandbox initialized with memory %d and capacity %d\n", sandbox->memory->abi->size, sandbox->memory->abi->capacity);
return 0;
}

Loading…
Cancel
Save