зеркало из https://github.com/github/ruby.git
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:
Родитель
f47c057c32
Коммит
b10500b72b
|
@ -434,15 +434,13 @@ 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();
|
||||
}
|
||||
|
||||
void
|
||||
rb_clear_all_refinement_method_cache(void)
|
||||
|
|
Загрузка…
Ссылка в новой задаче