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

ruby-changes:66402

From: Takashi <ko1@a...>
Date: Wed, 2 Jun 2021 16:11:13 +0900 (JST)
Subject: [ruby-changes:66402] c32ce2cbf1 (master): Clarify these are just for MJIT

https://git.ruby-lang.org/ruby.git/commit/?id=c32ce2cbf1

From c32ce2cbf100edd2a88e4230f08879c7cc73a891 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 2 Jun 2021 00:09:47 -0700
Subject: Clarify these are just for MJIT

and not for third-party libraries.

See: e6484a153038703447b50fcac26349249922ab28
---
 vm_core.h       | 4 ++--
 vm_insnhelper.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/vm_core.h b/vm_core.h
index 52baa40..0657271 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -1764,7 +1764,7 @@ rb_execution_context_t *rb_vm_main_ractor_ec(rb_vm_t *vm); // ractor.c https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1764
 /* for thread */
 
 #if RUBY_VM_THREAD_MODEL == 2
-RUBY_SYMBOL_EXPORT_BEGIN
+MJIT_SYMBOL_EXPORT_BEGIN
 
 RUBY_EXTERN struct rb_ractor_struct *ruby_single_main_ractor; // ractor.c
 RUBY_EXTERN rb_vm_t *ruby_current_vm_ptr;
@@ -1772,7 +1772,7 @@ RUBY_EXTERN rb_event_flag_t ruby_vm_event_flags; https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1772
 RUBY_EXTERN rb_event_flag_t ruby_vm_event_enabled_global_flags;
 RUBY_EXTERN unsigned int    ruby_vm_event_local_num;
 
-RUBY_SYMBOL_EXPORT_END
+MJIT_SYMBOL_EXPORT_END
 
 #define GET_VM()     rb_current_vm()
 #define GET_RACTOR() rb_current_ractor()
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 18e7056..e254e70 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -11,13 +11,13 @@ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L11
 
 **********************************************************************/
 
-RUBY_SYMBOL_EXPORT_BEGIN
+MJIT_SYMBOL_EXPORT_BEGIN
 
 RUBY_EXTERN VALUE ruby_vm_const_missing_count;
 RUBY_EXTERN rb_serial_t ruby_vm_global_constant_state;
 RUBY_EXTERN rb_serial_t ruby_vm_class_serial;
 
-RUBY_SYMBOL_EXPORT_END
+MJIT_SYMBOL_EXPORT_END
 
 #if VM_COLLECT_USAGE_DETAILS
 #define COLLECT_USAGE_INSN(insn)           vm_collect_usage_insn(insn)
-- 
cgit v1.1


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

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