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:
Peter Zhu 2024-09-10 11:25:47 -04:00
Родитель f47c057c32
Коммит b10500b72b
1 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -434,14 +434,12 @@ rb_vm_ci_lookup(ID mid, unsigned int flag, unsigned int argc, const struct rb_ca
void
rb_vm_ci_free(const struct rb_callinfo *ci)
{
ASSERT_vm_locking();
rb_vm_t *vm = GET_VM();
RB_VM_LOCK_ENTER();
{
st_data_t key = (st_data_t)ci;
st_delete(vm->ci_table, &key, NULL);
}
RB_VM_LOCK_LEAVE();
st_data_t key = (st_data_t)ci;
st_delete(vm->ci_table, &key, NULL);
}
void