From b6c1e1158d71b533b255ae7a2731598455918071 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 15 Jun 2022 14:37:41 +0200 Subject: GVL Instrumentation API: add STARTED and EXITED events [Feature #18339] After experimenting with the initial version of the API I figured there is a need for an exit event to cleanup instrumentation data. e.g. if you record data in a {thread_id -> data} table, you need to free associated data when a thread goes away. --- thread_none.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'thread_none.c') diff --git a/thread_none.c b/thread_none.c index cf4658e571..00004ed4dd 100644 --- a/thread_none.c +++ b/thread_none.c @@ -30,6 +30,8 @@ thread_sched_to_waiting(struct rb_thread_sched *sched) { } +#define thread_sched_to_dead thread_sched_to_waiting + static void thread_sched_yield(struct rb_thread_sched *sched, rb_thread_t *th) { -- cgit v1.2.1