diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2022-06-15 14:37:41 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2022-06-17 09:08:26 +0200 |
commit | b6c1e1158d71b533b255ae7a2731598455918071 (patch) | |
tree | 9b3fdf4eb4a54e56d77ec7732ff079bdd9f896bc /thread.c | |
parent | 20d4168250fb1f534cf2db7c44998b25252a70f8 (diff) | |
download | ruby-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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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) |