path: root/mjit.h
diff options
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 13:41:06 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 13:41:06 (GMT)
commit06f54f03039c225c5c0b5d1709865fb4fff02776 (patch)
treee75e84878da6dbf03e16af50c1c5529e86852660 /mjit.h
parent359dd59db2512d801bb983f98bede4fc598f139a (diff)
mjit.c: unify the variable name with method name
`RubyVM::MJIT.enabled?`. It's set to be TRUE even before initialization is finished. So it was actually not "mjit initialized predicate". This flag is also used to check whether JIT-ed code should be called or not, but I'm going to split the responsibility to another flag. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/mjit.h b/mjit.h
index 964ab38..2f9ea85 100644
--- a/mjit.h
+++ b/mjit.h
@@ -53,7 +53,7 @@ typedef VALUE (*mjit_func_t)(rb_execution_context_t *, rb_control_frame_t *);
extern struct mjit_options mjit_opts;
-extern int mjit_init_p;
+extern int mjit_enabled;
extern void mjit_add_iseq_to_process(const rb_iseq_t *iseq);
extern mjit_func_t mjit_get_iseq_func(struct rb_iseq_constant_body *body);
@@ -94,7 +94,7 @@ mjit_exec(rb_execution_context_t *ec)
long unsigned total_calls;
mjit_func_t func;
- if (!mjit_init_p)
+ if (!mjit_enabled)
return Qundef;
iseq = ec->cfp->iseq;