diff options
author | Jean Boussier <[email protected]> | 2022-06-15 14:37:41 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2022-06-17 09:08:26 +0200 |
commit | b6c1e1158d71b533b255ae7a2731598455918071 () | |
tree | 9b3fdf4eb4a54e56d77ec7732ff079bdd9f896bc /thread_win32.c | |
parent | 20d4168250fb1f534cf2db7c44998b25252a70f8 (diff) |
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.
Notes: Merged: https://.com/ruby/ruby/pull/6029
-rw-r--r-- | thread_win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -135,6 +135,8 @@ thread_sched_to_waiting(struct rb_thread_sched *sched) ReleaseMutex(sched->lock); } static void thread_sched_yield(struct rb_thread_sched *sched, rb_thread_t *th) { |