diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-08 23:14:33 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-08 23:24:38 -0800 |
commit | f5909ac6d962acf1eb2736a66316c74693e63a2f (patch) | |
tree | dc83934955383100fab09eca212b9b4f1872c11d /vm.c | |
parent | a0918a4a80226700ee7c8ea27b30b87f86e5a25d (diff) |
RJIT: Stop allowing leaked globals rjit_*
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -379,7 +379,7 @@ jit_exec(rb_execution_context_t *ec) const rb_iseq_t *iseq = ec->cfp->iseq; struct rb_iseq_constant_body *body = ISEQ_BODY(iseq); bool yjit_enabled = rb_yjit_enabled_p(); - if (yjit_enabled || rjit_call_p) { + if (yjit_enabled || rb_rjit_call_p) { body->total_calls++; } else { @@ -402,7 +402,7 @@ jit_exec(rb_execution_context_t *ec) return Qundef; } } - else { // rjit_call_p + else { // rb_rjit_call_p if (body->total_calls == rb_rjit_call_threshold()) { rb_rjit_compile(iseq); } @@ -2822,7 +2822,7 @@ rb_vm_mark(void *ptr) } } - rjit_mark(); + rb_rjit_mark(); } RUBY_MARK_LEAVE("vm"); |