Skip to content

Commit

Permalink
checkpoint even when snapshot_threshold=0
Browse files Browse the repository at this point in the history
  • Loading branch information
sakria9 committed Jan 21, 2024
1 parent fbada58 commit 6b276a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wamr_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void sigtrap_handler(int sig) {
signal(SIGILL, sigtrap_handler);
#endif
call_count++;
if (snapshot_threshold != 0)
if (snapshot_threshold != 0 || checkpoint)
if (call_count >= snapshot_threshold || checkpoint) {
fprintf(stderr, "serializing\n");
serialize_to_file(exec_env);
Expand Down

0 comments on commit 6b276a4

Please sign in to comment.