diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2023-11-24 13:18:00 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-11-27 17:37:57 +0100 |
commit | 23a7714343b372234972ef0dacf774d07fe65ced (patch) | |
tree | 9b507cf583a37cece7cffb066e4c71ef6972161e /thread.c | |
parent | e3875dd0f8f11d9dbdc25b400f387c406b799cb5 (diff) |
Refactor and fix the GVL instrumentation API
This entirely changes how it is tested. Rather than to use counters
we now record the timeline of events with associated threads which
makes it much easier to assert that certains events are only preceded
by a specific event, and makes it much easier to debug unexpected
timelines.
Co-Authored-By: Étienne Barrié <etienne.barrie@gmail.com>
Co-Authored-By: JP Camara <jp@jpcamara.com>
Co-Authored-By: John Hawthorn <john@hawthorn.email>
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -5406,10 +5406,6 @@ Init_Thread(void) // it assumes blocked by thread_sched_to_waiting(). // thread_sched_to_running(sched, th); -#ifdef RB_INTERNAL_THREAD_HOOK - RB_INTERNAL_THREAD_HOOK(RUBY_INTERNAL_THREAD_EVENT_RESUMED, th); -#endif - th->pending_interrupt_queue = rb_ary_hidden_new(0); th->pending_interrupt_queue_checked = 0; th->pending_interrupt_mask_stack = rb_ary_hidden_new(0); |