summaryrefslogtreecommitdiff
path: root/mjit_compiler.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-28 21:33:55 -0800
committerGitHub <noreply@github.com>2022-11-28 21:33:55 -0800
commit9c13fc614c2de0ca4aa8b6ecdd84033ef689b542 (patch)
treec4babe279f5f1d070b8c9aa8a57cb97d52be6630 /mjit_compiler.c
parentacb76663ba20241e7c2552aafae8b1d883520b9a (diff)
MJIT: Make it parsable by Solargraph (#6827)
* Revert "Revert "MJIT: Make it parsable by Solargraph"" This reverts commit 8e18761da1932df88bfb6505acbda4740e1b2930. * Call rb_gc_register_mark_object
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'mjit_compiler.c')
-rw-r--r--mjit_compiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mjit_compiler.c b/mjit_compiler.c
index f71a9f09eb..5d5d25c1ae 100644
--- a/mjit_compiler.c
+++ b/mjit_compiler.c
@@ -122,8 +122,8 @@ mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname, int id)
bool original_call_p = mjit_call_p;
mjit_call_p = false; // Avoid impacting JIT metrics by itself
- extern VALUE rb_mMJITCompiler;
- VALUE src = rb_funcall(rb_mMJITCompiler, rb_intern("compile"), 3,
+ extern VALUE rb_cMJITCompiler;
+ VALUE src = rb_funcall(rb_cMJITCompiler, rb_intern("compile"), 3,
rb_ptr("rb_iseq_t", iseq), rb_str_new_cstr(funcname), INT2NUM(id));
if (!NIL_P(src)) {
fprintf(f, "%s", RSTRING_PTR(src));