1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Koichi Sasada 2020-12-07 00:07:30 +09:00
parent 344ec26a99
commit bef3eb5440
Notes: git 2020-12-07 08:29:07 +09:00
4 changed files with 3 additions and 10 deletions

View file

@ -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)