Assume VM is locked in rb_vm_ci_free
The GC always locks the VM, so we don't need to lock it in rb_vm_ci_free.
This commit is contained in:
parent
f47c057c32
commit
b10500b72b
Notes:
git
2024-09-12 14:15:43 +00:00
@ -434,14 +434,12 @@ rb_vm_ci_lookup(ID mid, unsigned int flag, unsigned int argc, const struct rb_ca
|
|||||||
void
|
void
|
||||||
rb_vm_ci_free(const struct rb_callinfo *ci)
|
rb_vm_ci_free(const struct rb_callinfo *ci)
|
||||||
{
|
{
|
||||||
|
ASSERT_vm_locking();
|
||||||
|
|
||||||
rb_vm_t *vm = GET_VM();
|
rb_vm_t *vm = GET_VM();
|
||||||
|
|
||||||
RB_VM_LOCK_ENTER();
|
|
||||||
{
|
|
||||||
st_data_t key = (st_data_t)ci;
|
st_data_t key = (st_data_t)ci;
|
||||||
st_delete(vm->ci_table, &key, NULL);
|
st_delete(vm->ci_table, &key, NULL);
|
||||||
}
|
|
||||||
RB_VM_LOCK_LEAVE();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user