summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-08 23:14:33 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-08 23:24:38 -0800
commitf5909ac6d962acf1eb2736a66316c74693e63a2f (patch)
treedc83934955383100fab09eca212b9b4f1872c11d /vm.c
parenta0918a4a80226700ee7c8ea27b30b87f86e5a25d (diff)
downloadruby-f5909ac6d962acf1eb2736a66316c74693e63a2f.tar.gz
RJIT: Stop allowing leaked globals rjit_*
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index d9fd5428ed..3c809c65d3 100644
--- a/vm.c
+++ b/vm.c
@@ -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");