Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/migration #17

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
デバッグ用のall_memory.imgをダンプしないようにした
funera1 committed Jan 21, 2024
commit 4e89fdb3a6ffbfe58961d8935c886b44a1f9190c
4 changes: 2 additions & 2 deletions core/iwasm/migration/wasm_dump.c
Original file line number Diff line number Diff line change
@@ -355,8 +355,8 @@ int wasm_dump_memory(WASMMemoryInstance *memory) {
dump_dirty_memory(memory);

// デバッグのために、すべてのメモリも保存
fwrite(memory->memory_data, sizeof(uint8),
memory->num_bytes_per_page * memory->cur_page_count, memory_fp);
// fwrite(memory->memory_data, sizeof(uint8),
// memory->num_bytes_per_page * memory->cur_page_count, memory_fp);

printf("page_count: %d\n", memory->cur_page_count);
fwrite(&(memory->cur_page_count), sizeof(uint32), 1, mem_size_fp);