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

Clarify these are just for MJIT

and not for third-party libraries.

See: e6484a1530
This commit is contained in:
Takashi Kokubun 2021-06-02 00:09:47 -07:00
parent 0f97aaa6cf
commit c32ce2cbf1
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
2 changed files with 4 additions and 4 deletions

View file

@ -1764,7 +1764,7 @@ rb_execution_context_t *rb_vm_main_ractor_ec(rb_vm_t *vm); // ractor.c
/* for thread */ /* for thread */
#if RUBY_VM_THREAD_MODEL == 2 #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 struct rb_ractor_struct *ruby_single_main_ractor; // ractor.c
RUBY_EXTERN rb_vm_t *ruby_current_vm_ptr; RUBY_EXTERN rb_vm_t *ruby_current_vm_ptr;
@ -1772,7 +1772,7 @@ RUBY_EXTERN rb_event_flag_t ruby_vm_event_flags;
RUBY_EXTERN rb_event_flag_t ruby_vm_event_enabled_global_flags; RUBY_EXTERN rb_event_flag_t ruby_vm_event_enabled_global_flags;
RUBY_EXTERN unsigned int ruby_vm_event_local_num; 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_VM() rb_current_vm()
#define GET_RACTOR() rb_current_ractor() #define GET_RACTOR() rb_current_ractor()

View file

@ -11,13 +11,13 @@
**********************************************************************/ **********************************************************************/
RUBY_SYMBOL_EXPORT_BEGIN MJIT_SYMBOL_EXPORT_BEGIN
RUBY_EXTERN VALUE ruby_vm_const_missing_count; 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_global_constant_state;
RUBY_EXTERN rb_serial_t ruby_vm_class_serial; RUBY_EXTERN rb_serial_t ruby_vm_class_serial;
RUBY_SYMBOL_EXPORT_END MJIT_SYMBOL_EXPORT_END
#if VM_COLLECT_USAGE_DETAILS #if VM_COLLECT_USAGE_DETAILS
#define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn) #define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn)