gc.c: Remove no-op code

In this context, `vm_locked` is a argument variable, and is not used
later in the function.
This commit is contained in:
Daisuke Aritomo 2025-02-09 18:13:33 +09:00 committed by Peter Zhu
parent 3fb455adab
commit c7e35e5534
Notes: git 2025-02-10 19:21:27 +00:00

View File

@ -2404,7 +2404,6 @@ newobj_cache_miss(rb_objspace_t *objspace, rb_ractor_newobj_cache_t *cache, size
if (!vm_locked) {
lev = rb_gc_cr_lock();
vm_locked = true;
unlock_vm = true;
}