1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

hide vm_ep_in_heap_p_

`make leaked-globals` points out that this function is leaked.  This has
not been detected in our CI because it is defined only when
VM_CHECK_MODE is nonzero.

Just make it static and everytihng goes well.
This commit is contained in:
卜部昌平 2020-02-15 18:56:44 +09:00
parent c7e6dbd5ab
commit 8920e2040a

2
vm.c
View file

@ -156,7 +156,7 @@ VM_EP_IN_HEAP_P(const rb_execution_context_t *ec, const VALUE *ep)
}
}
int
static int
vm_ep_in_heap_p_(const rb_execution_context_t *ec, const VALUE *ep)
{
if (VM_EP_IN_HEAP_P(ec, ep)) {