From 0ab67c1605e3ad6341d1f62f0fb7415feea784a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Mon, 6 Nov 2023 06:44:10 +0100 Subject: [PATCH] fixup! Add native coverage support --- erts/emulator/beam/jit/asm_load.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erts/emulator/beam/jit/asm_load.c b/erts/emulator/beam/jit/asm_load.c index b613f1ed5d9e..63661a38daa5 100644 --- a/erts/emulator/beam/jit/asm_load.c +++ b/erts/emulator/beam/jit/asm_load.c @@ -82,8 +82,8 @@ int beam_load_prepare_emit(LoaderState *stp) { stp->line_coverage = erts_alloc(ERTS_ALC_T_CODE_COVERAGE, alloc_size * coverage_size); memset(stp->line_coverage, 0, alloc_size * coverage_size); - stp->line_coverage_valid = - erts_alloc(ERTS_ALC_T_CODE_COVERAGE, alloc_size); + stp->line_coverage_valid = erts_alloc(ERTS_ALC_T_CODE_COVERAGE, + alloc_size); memset(stp->line_coverage_valid, 0, alloc_size); hdr->line_coverage_len = alloc_size; hdr->line_coverage_size = coverage_size; @@ -91,8 +91,8 @@ int beam_load_prepare_emit(LoaderState *stp) { if (erts_function_coverage) { size_t alloc_size = hdr->num_functions; - stp->function_coverage = - erts_alloc(ERTS_ALC_T_CODE_COVERAGE, alloc_size); + stp->function_coverage = erts_alloc(ERTS_ALC_T_CODE_COVERAGE, + alloc_size); memset(stp->function_coverage, 0, alloc_size); }