aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-11-24 13:18:00 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-11-27 17:37:57 +0100
commit23a7714343b372234972ef0dacf774d07fe65ced (patch)
tree9b507cf583a37cece7cffb066e4c71ef6972161e /thread.c
parente3875dd0f8f11d9dbdc25b400f387c406b799cb5 (diff)
downloadruby-23a7714343b372234972ef0dacf774d07fe65ced.tar.gz
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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index 6c255ae159..1e160d6ab9 100644
--- a/thread.c
+++ b/thread.c
@@ -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);