From bef3eb544025cc4bd4c9c7b87a8ffe4966db6faa Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Mon, 7 Dec 2020 00:07:30 +0900 Subject: 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. --- vm_sync.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_sync.h') diff --git a/vm_sync.h b/vm_sync.h index 8244b6173e..14b63f3017 100644 --- a/vm_sync.h +++ b/vm_sync.h @@ -31,7 +31,7 @@ void rb_vm_barrier(void); #include "vm_core.h" #endif -extern struct rb_ractor_struct *ruby_single_main_ractor; // ractor.c +RUBY_EXTERN struct rb_ractor_struct *ruby_single_main_ractor; // ractor.c static inline bool rb_multi_ractor_p(void) -- cgit v1.2.3