From 056e7a0154fe4c71eca3726c878bb3da7e4138f8 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 19 Jan 2023 14:47:17 -0500 Subject: Make all of the references of iseq movable --- vm_trace.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vm_trace.c') diff --git a/vm_trace.c b/vm_trace.c index 20fade5fd9..428c4a0170 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -66,6 +66,17 @@ rb_hook_list_mark(rb_hook_list_t *hooks) } } +void +rb_hook_list_mark_and_update(rb_hook_list_t *hooks) +{ + rb_event_hook_t *hook = hooks->hooks; + + while (hook) { + rb_gc_mark_and_move(&hook->data); + hook = hook->next; + } +} + static void clean_hooks(const rb_execution_context_t *ec, rb_hook_list_t *list); void -- cgit v1.2.1