summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2022-06-15 14:37:41 +0200
committerJean Boussier <jean.boussier@gmail.com>2022-06-17 09:08:26 +0200
commitb6c1e1158d71b533b255ae7a2731598455918071 (patch)
tree9b3fdf4eb4a54e56d77ec7732ff079bdd9f896bc /thread.c
parent20d4168250fb1f534cf2db7c44998b25252a70f8 (diff)
downloadruby-b6c1e1158d71b533b255ae7a2731598455918071.tar.gz
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.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 6c22867bab..620a56d9a0 100644
--- a/thread.c
+++ b/thread.c
@@ -631,7 +631,6 @@ thread_do_start(rb_thread_t *th)
}
void rb_ec_clear_current_thread_trace_func(const rb_execution_context_t *ec);
-#define thread_sched_to_dead thread_sched_to_waiting
static int
thread_start_func_2(rb_thread_t *th, VALUE *stack_start)