Skip to content

Commit e76141c

Browse files
authored
[mono][interp] Fix attempt to free tiering data when tiering is disabled (#119294)
1 parent 3605ab4 commit e76141c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mono/mono/mini/interp/tiering.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ register_imethod_data_item (gpointer data, gpointer user_data)
131131
void
132132
mono_interp_clear_data_items_patch_sites (gpointer *data_items, int n_data_items)
133133
{
134+
if (!enable_tiering)
135+
return;
134136
// data_items is part of the memory of a dynamic method that is being freed.
135137
// slots within this memory can be registered as patch sites for other imethods
136138
// We conservatively assume each slot could be an imethod slot, then look it up

0 commit comments

Comments
 (0)