From 67485fee42677b712a2ff002726f83f49b945564 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Mon, 26 Nov 2018 15:47:20 +0000 Subject: vm_trace.c: MJIT-limited thread-safety for postponed_job [Bug #15316] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mjit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mjit.h') diff --git a/mjit.h b/mjit.h index d52196aee5..3aabf514ac 100644 --- a/mjit.h +++ b/mjit.h @@ -66,6 +66,8 @@ RUBY_SYMBOL_EXPORT_END extern int mjit_compile(FILE *f, const struct rb_iseq_constant_body *body, const char *funcname, struct rb_call_cache *cc_entries, union iseq_inline_storage_entry *is_entries); extern void mjit_init(struct mjit_options *opts); +extern void mjit_postponed_job_register_start_hook(void); +extern void mjit_postponed_job_register_finish_hook(void); extern void mjit_gc_start_hook(void); extern void mjit_gc_finish_hook(void); extern void mjit_free_iseq(const rb_iseq_t *iseq); @@ -131,6 +133,8 @@ void mjit_child_after_fork(void); #else /* USE_MJIT */ static inline struct mjit_cont *mjit_cont_new(rb_execution_context_t *ec){return NULL;} static inline void mjit_cont_free(struct mjit_cont *cont){} +static inline void mjit_postponed_job_register_start_hook(void){} +static inline void mjit_postponed_job_register_finish_hook(void){} static inline void mjit_gc_start_hook(void){} static inline void mjit_gc_finish_hook(void){} static inline void mjit_free_iseq(const rb_iseq_t *iseq){} -- cgit v1.2.3