From e54d1e99e96fd2bbf6154f7eb2928b1e2d63596e Mon Sep 17 00:00:00 2001 From: "S.H" Date: Mon, 4 Oct 2021 08:21:40 +0900 Subject: [PATCH] Move rb_ractor_p definition --- gc.c | 2 -- ractor_core.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gc.c b/gc.c index 76a5df27a6..fdd4ac5eb3 100644 --- a/gc.c +++ b/gc.c @@ -13068,8 +13068,6 @@ rb_raw_iseq_info(char *buff, const int buff_size, const rb_iseq_t *iseq) } } -bool rb_ractor_p(VALUE rv); - static int str_len_no_raise(VALUE str) { diff --git a/ractor_core.h b/ractor_core.h index a2dc99df88..7673607a00 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -168,6 +168,7 @@ VALUE rb_thread_create_ractor(rb_ractor_t *g, VALUE args, VALUE proc); // define rb_global_vm_lock_t *rb_ractor_gvl(rb_ractor_t *); int rb_ractor_living_thread_num(const rb_ractor_t *); VALUE rb_ractor_thread_list(rb_ractor_t *r); +bool rb_ractor_p(VALUE rv); void rb_ractor_living_threads_init(rb_ractor_t *r); void rb_ractor_living_threads_insert(rb_ractor_t *r, rb_thread_t *th);