diff options
author | Koichi Sasada <[email protected]> | 2020-12-07 00:07:30 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-12-07 08:28:36 +0900 |
commit | bef3eb544025cc4bd4c9c7b87a8ffe4966db6faa (patch) | |
tree | c7ae1a936a085d9abb9808d0e6cada1e7fc5225c /vm_sync.h | |
parent | 344ec26a99e09c2d2f756fa6384e75ffa48f415f (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 'vm_sync.h')
-rw-r--r-- | vm_sync.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |