diff options
author | Takashi Kokubun <[email protected]> | 2023-10-19 10:54:35 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-19 10:54:35 -0700 |
commit | 6beb09c2c99a2575027bdbc60a6fbb099416f74d (patch) | |
tree | dc0033f88b48f9cfd7ecaa67ca055a09a4437f96 /yjit.c | |
parent | 62e340251b577e3a9d11ac5c2b75ad49b8036294 (diff) |
YJIT: Add RubyVM::YJIT.enable (#8705)
Diffstat (limited to 'yjit.c')
-rw-r--r-- | yjit.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -1171,20 +1171,15 @@ 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); +VALUE rb_yjit_enable(rb_execution_context_t *ec, VALUE self); // Preprocessed yjit.rb generated during build #include "yjit.rbinc" -// Can raise RuntimeError +// Initialize the GC hooks void -rb_yjit_init(void) +rb_yjit_init_gc_hooks(void) { - // Call the Rust initialization code - void rb_yjit_init_rust(void); - rb_yjit_init_rust(); - - // Initialize the GC hooks. Do this second as some code depend on Rust initialization. struct yjit_root_struct *root; VALUE yjit_root = TypedData_Make_Struct(0, struct yjit_root_struct, &yjit_root_type, root); rb_gc_register_mark_object(yjit_root); |