summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-10-06 17:44:19 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:42 -0400
commit7c08538aa3a366409784f6a8b7aa013b85633803 (patch)
treecae00db737ff8fa27ba347f9a2960fe4f7e8fadd /proc.c
parent884b6f3dbb33ef98fbfe96e7c70ccc8bb5735829 (diff)
downloadruby-7c08538aa3a366409784f6a8b7aa013b85633803.tar.gz
Cleanup diff against upstream. Add comments
I did a `git diff --stat` against upstream and looked at all the files that are outside of YJIT to come up with these minor changes.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index 99b522d95f..2e9307e53e 100644
--- a/proc.c
+++ b/proc.c
@@ -347,7 +347,7 @@ rb_binding_alloc(VALUE klass)
VALUE obj;
rb_binding_t *bind;
obj = TypedData_Make_Struct(klass, rb_binding_t, &ruby_binding_data_type, bind);
-#if RUBY_DEBUG
+#if YJIT_STATS
rb_yjit_collect_binding_alloc();
#endif
return obj;
@@ -614,7 +614,7 @@ bind_local_variable_set(VALUE bindval, VALUE sym, VALUE val)
env = VM_ENV_ENVVAL_PTR(vm_block_ep(&bind->block));
}
-#if RUBY_DEBUG
+#if YJIT_STATS
rb_yjit_collect_binding_set();
#endif