Skip to content

Commit 7119139

Browse files
committed
gc.c: Add missing DURING_GC_COULD_MALLOC_REGION around st_insert
1 parent 30d692d commit 7119139

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3686,7 +3686,10 @@ vm_weak_table_id_to_obj_foreach(st_data_t key, st_data_t value, st_data_t data)
36863686
VALUE new_value = (VALUE)value;
36873687
ret = iter_data->update_callback(&new_value, iter_data->data);
36883688
if (value != new_value) {
3689-
st_insert(id_to_obj_tbl, key, (st_data_t)new_value);
3689+
DURING_GC_COULD_MALLOC_REGION_START();
3690+
{
3691+
st_insert(id_to_obj_tbl, key, (st_data_t)new_value);
3692+
}
36903693
}
36913694
return ST_CONTINUE;
36923695
}

0 commit comments

Comments
 (0)