summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-07 00:07:30 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-07 08:28:36 +0900
commitbef3eb544025cc4bd4c9c7b87a8ffe4966db6faa (patch)
treec7ae1a936a085d9abb9808d0e6cada1e7fc5225c /ractor.c
parent344ec26a99e09c2d2f756fa6384e75ffa48f415f (diff)
fix decl of ruby_single_main_ractor
On windows, MJIT doesn't work without this patch because of the declaration of ruby_single_main_ractor. This patch fix this issue and move the definition of it from ractor.c to vm.c to locate near place of ruby_current_vm_ptr.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3842
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ractor.c b/ractor.c
index 64e20b46e7..72e1e091ea 100644
--- a/ractor.c
+++ b/ractor.c
@@ -30,13 +30,6 @@ rb_ractor_error_class(void)
return rb_eRactorError;
}
-RUBY_SYMBOL_EXPORT_BEGIN
-
-// to share with MJIT
-rb_ractor_t *ruby_single_main_ractor;
-
-RUBY_SYMBOL_EXPORT_END
-
static void vm_ractor_blocking_cnt_inc(rb_vm_t *vm, rb_ractor_t *r, const char *file, int line);
static void