[前][次][番号順一覧][スレッド一覧]

ruby-changes:48117

From: k0kubun <ko1@a...>
Date: Sat, 21 Oct 2017 15:22:49 +0900 (JST)
Subject: [ruby-changes:48117] k0kubun:r60231 (trunk): vm_core.h: export symbols of shared variables

k0kubun	2017-10-21 15:22:43 +0900 (Sat, 21 Oct 2017)

  New Revision: 60231

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60231

  Log:
    vm_core.h: export symbols of shared variables
    
    vm_insnhelper.h: ditto.
    
    All changes are for reducing changes required to introduce JIT compiler.
    Unlike functions that can be inlined by header, those variables should
    be shared with JIT-ed code. This will help reducing cost of rebase
    against upstream.
    
    [close GH-1720]

  Modified files:
    trunk/vm_core.h
    trunk/vm_insnhelper.h
Index: vm_insnhelper.h
===================================================================
--- vm_insnhelper.h	(revision 60230)
+++ vm_insnhelper.h	(revision 60231)
@@ -12,8 +12,12 @@ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L12
 #ifndef RUBY_INSNHELPER_H
 #define RUBY_INSNHELPER_H
 
+RUBY_SYMBOL_EXPORT_BEGIN
+
 extern VALUE ruby_vm_const_missing_count;
 
+RUBY_SYMBOL_EXPORT_END
+
 #if VM_COLLECT_USAGE_DETAILS
 #define COLLECT_USAGE_INSN(insn)           vm_collect_usage_insn(insn)
 #define COLLECT_USAGE_OPERAND(insn, n, op) vm_collect_usage_operand((insn), (n), ((VALUE)(op)))
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 60230)
+++ vm_core.h	(revision 60231)
@@ -1570,10 +1570,15 @@ VALUE rb_catch_protect(VALUE t, rb_block https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1570
 /* for thread */
 
 #if RUBY_VM_THREAD_MODEL == 2
+
+RUBY_SYMBOL_EXPORT_BEGIN
+
 extern rb_thread_t *ruby_current_thread;
 extern rb_vm_t *ruby_current_vm;
 extern rb_event_flag_t ruby_vm_event_flags;
 
+RUBY_SYMBOL_EXPORT_END
+
 #define GET_VM() ruby_current_vm
 #define GET_THREAD() ruby_current_thread
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]