ruby-changes:48121
From: k0kubun <ko1@a...>
Date: Sat, 21 Oct 2017 15:57:09 +0900 (JST)
Subject: [ruby-changes:48121] k0kubun:r60235 (trunk): vm.c, vm_insnhelper.h: export symbols of VM serials
k0kubun 2017-10-21 15:57:04 +0900 (Sat, 21 Oct 2017) New Revision: 60235 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60235 Log: vm.c, vm_insnhelper.h: export symbols of VM serials This change is for future JIT compiler introduction. See r60231 for the purpose. [close GH-1721] Modified files: trunk/vm.c trunk/vm_insnhelper.h Index: vm.c =================================================================== --- vm.c (revision 60234) +++ vm.c (revision 60235) @@ -295,10 +295,6 @@ static VALUE vm_invoke_bmethod(rb_thread https://github.com/ruby/ruby/blob/trunk/vm.c#L295 static VALUE vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self, int argc, const VALUE *argv, VALUE block_handler); -static rb_serial_t ruby_vm_global_method_state = 1; -static rb_serial_t ruby_vm_global_constant_state = 1; -static rb_serial_t ruby_vm_class_serial = 1; - #include "vm_insnhelper.h" #include "vm_exec.h" #include "vm_insnhelper.c" @@ -324,6 +320,9 @@ VALUE ruby_vm_const_missing_count = 0; https://github.com/ruby/ruby/blob/trunk/vm.c#L320 rb_thread_t *ruby_current_thread = 0; rb_vm_t *ruby_current_vm = 0; rb_event_flag_t ruby_vm_event_flags; +rb_serial_t ruby_vm_global_method_state = 1; +rb_serial_t ruby_vm_global_constant_state = 1; +rb_serial_t ruby_vm_class_serial = 1; static void thread_free(void *ptr); Index: vm_insnhelper.h =================================================================== --- vm_insnhelper.h (revision 60234) +++ vm_insnhelper.h (revision 60235) @@ -15,6 +15,9 @@ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L15 RUBY_SYMBOL_EXPORT_BEGIN extern VALUE ruby_vm_const_missing_count; +extern rb_serial_t ruby_vm_global_method_state; +extern rb_serial_t ruby_vm_global_constant_state; +extern rb_serial_t ruby_vm_class_serial; RUBY_SYMBOL_EXPORT_END -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/