From 39a34694a0e33e18b4ac6e43cb8042e2d818ecd4 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Tue, 28 Mar 2023 15:21:19 -0400 Subject: YJIT: Add `--yjit-pause` and `RubyVM::YJIT.resume` (#7609) * YJIT: Add --yjit-pause and RubyVM::YJIT.resume This allows booting YJIT in a suspended state. We chose to add a new command line option as opposed to simply allowing YJIT.resume to work without any command line option because it allows for combining with YJIT tuning command line options. It also simpifies implementation. Paired with Kokubun and Maxime. * Update yjit.rb Co-authored-by: Takashi Kokubun --------- Co-authored-by: Alan Wu Co-authored-by: Takashi Kokubun --- yjit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'yjit.c') diff --git a/yjit.c b/yjit.c index 97ad722270..3740b9003d 100644 --- a/yjit.c +++ b/yjit.c @@ -1114,6 +1114,7 @@ VALUE rb_yjit_insns_compiled(rb_execution_context_t *ec, VALUE self, VALUE iseq) VALUE rb_yjit_code_gc(rb_execution_context_t *ec, VALUE self); VALUE rb_yjit_simulate_oom_bang(rb_execution_context_t *ec, VALUE self); VALUE rb_yjit_get_exit_locations(rb_execution_context_t *ec, VALUE self); +VALUE rb_yjit_resume(rb_execution_context_t *ec, VALUE self); // Preprocessed yjit.rb generated during build #include "yjit.rbinc" -- cgit v1.2.1