summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2021-05-09 16:11:52 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2021-05-09 16:11:52 +0000
commit5df653caaa1a666172d889760786cdf26952a1a7 (patch)
treeb2da18ca2e1d16140a740776e7628e78a948e9f1 /vm.c
parent1b59a4dc76caa061355f4289d2c54d4625671735 (diff)
fix macos build
note that this is not a security fix, but recognized as critical build problem. [Backport #17777] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 0954aa79af..04b8b96f53 100644
--- a/vm.c
+++ b/vm.c
@@ -2263,6 +2263,8 @@ free_loading_table_entry(st_data_t key, st_data_t value, st_data_t arg)
return ST_DELETE;
}
+extern void rb_native_mutex_destroy(rb_nativethread_lock_t *lock);
+
int
ruby_vm_destruct(rb_vm_t *vm)
{
@@ -2486,7 +2488,7 @@ rb_execution_context_mark(const rb_execution_context_t *ec)
rb_gc_mark_machine_stack(ec);
rb_gc_mark_locations((VALUE *)&ec->machine.regs,
(VALUE *)(&ec->machine.regs) +
- sizeof(ec->machine.regs) / sizeof(VALUE));
+ sizeof(ec->machine.regs) / (sizeof(VALUE)));
}
RUBY_MARK_UNLESS_NULL(ec->errinfo);