aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-24 00:11:59 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-05 22:11:20 -0800
commit114f8d3e330735fda394c58d7a373913f9ccb93b (patch)
tree01460b5493c5f60f2b6e201e2b1df668d674a48d /mjit.h
parent43f579afb404be4c1c6dfd98e1936a2ede917e7f (diff)
downloadruby-114f8d3e330735fda394c58d7a373913f9ccb93b.tar.gz
Disable MJIT on a couple of conditions
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mjit.h b/mjit.h
index 824d91d076..71cdaef961 100644
--- a/mjit.h
+++ b/mjit.h
@@ -114,6 +114,9 @@ extern void rb_mjit_tracing_invalidate_all(rb_event_flag_t new_iseq_events);
void mjit_child_after_fork(void);
+extern void rb_mjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop);
+extern void rb_mjit_before_ractor_spawn(void);
+
# ifdef MJIT_HEADER
#define mjit_enabled true
# else // MJIT_HEADER
@@ -143,5 +146,8 @@ static inline VALUE mjit_pause(bool wait_p){ return Qnil; } // unreachable
static inline VALUE mjit_resume(void){ return Qnil; } // unreachable
static inline void mjit_finish(bool close_handle_p){}
+static inline void rb_mjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop) {}
+static inline void rb_mjit_before_ractor_spawn(void) {}
+
# endif // USE_MJIT
#endif // RUBY_MJIT_H