Skip to content

Commit ee4be3d

Browse files
authored
[mono][arm64] Fix SeqPointInfo allocation (#118542)
`bp_addrs` now needs to contain a pointer slot for every single byte in the code. Regressed after #118458 Fixes #118519
1 parent b3d4a4f commit ee4be3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/mono/mini/mini-arm64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6966,7 +6966,7 @@ mono_arch_get_seq_point_info (guint8 *code)
69666966
ji = mini_jit_info_table_find (code);
69676967
g_assert (ji);
69686968

6969-
info = g_malloc0 (sizeof (SeqPointInfo) + (ji->code_size / 4) * sizeof(guint8*));
6969+
info = g_malloc0 (sizeof (SeqPointInfo) + ji->code_size * sizeof(guint8*));
69706970

69716971
info->ss_tramp_addr = &ss_trampoline;
69726972

0 commit comments

Comments
 (0)