Skip to content

Commit 21ad6df

Browse files
committed
Merge pull request #1956 from pguyot/w45/add-missing-option-to-silence-crashdump-with-jit
Add missing `AVM_PRINT_PROCESS_CRASH_DUMPS` to JIT These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 54d93a8 + f8e549a commit 21ad6df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libAtomVM/jit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ static Context *jit_handle_error(Context *ctx, JITState *jit_state, int offset)
207207
}
208208

209209
// Do not print crash dump if reason is normal or shutdown.
210+
#ifdef AVM_PRINT_PROCESS_CRASH_DUMPS
210211
if (ctx->x[0] != LOWERCASE_EXIT_ATOM || (ctx->x[1] != NORMAL_ATOM && ctx->x[1] != SHUTDOWN_ATOM)) {
211212
context_dump(ctx);
212213
}
214+
#endif
213215

214216
if (ctx->x[0] == LOWERCASE_EXIT_ATOM) {
215217
ctx->exit_reason = ctx->x[1];

0 commit comments

Comments
 (0)