summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-10-04 08:21:40 +0900
committerGitHub <noreply@github.com>2021-10-04 08:21:40 +0900
commite54d1e99e96fd2bbf6154f7eb2928b1e2d63596e (patch)
treece30d7001c6a0a7e84824b5c5a6c98ea4ca621fb
parent3f5b52bfda3dff7d7ec0cc1909428c45d26b0d72 (diff)
Move rb_ractor_p definition
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4422 Merged-By: nobu <nobu@ruby-lang.org>
-rw-r--r--gc.c2
-rw-r--r--ractor_core.h1
2 files changed, 1 insertions, 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);