aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-02-06 09:29:39 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-03-06 13:10:42 +0100
commit704dd25812f34228a28f37c37757a675ad078a2b (patch)
tree2482f2434bcbf9632aaa5aaba7e16ad84d5351d5 /thread.c
parent22d944c8b76be04dc437100c46626db5fe9dd7f0 (diff)
downloadruby-704dd25812f34228a28f37c37757a675ad078a2b.tar.gz
TestThreadInstrumentation: emit the EXIT event sooner
``` 1) Failure: TestThreadInstrumentation#test_thread_instrumentation [/tmp/ruby/src/trunk-repeat20-asserts/test/-ext-/thread/test_instrumentation_api.rb:33]: Call counters[4]: [3, 4, 4, 4, 0]. Expected 0 to be > 0. ``` We fire the EXIT hook after the call to `thread_sched_to_dead` which mean another thread might be running before the `EXIT` hook have been executed.
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 d62653679a..c229d4df6c 100644
--- a/thread.c
+++ b/thread.c
@@ -635,7 +635,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)