From 30b43f4f1a37641edc0b146b8a648686a65a3aef Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Thu, 30 Mar 2023 02:38:08 +0900 Subject: `rb_ractor_thread_list()` only for current ractor so that no need to lock the ractor. --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 81be9fb03b..57bd2e0d9c 100644 --- a/thread.c +++ b/thread.c @@ -2728,7 +2728,7 @@ VALUE rb_thread_list(void) { // TODO - return rb_ractor_thread_list(GET_RACTOR()); + return rb_ractor_thread_list(); } /* -- cgit v1.2.3