Skip to content

Commit c7e35e5

Browse files
osyoyupeterzhu2118
authored andcommitted
gc.c: Remove no-op code
In this context, `vm_locked` is a argument variable, and is not used later in the function.
1 parent 3fb455a commit c7e35e5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

gc/default/default.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,6 @@ newobj_cache_miss(rb_objspace_t *objspace, rb_ractor_newobj_cache_t *cache, size
24042404

24052405
if (!vm_locked) {
24062406
lev = rb_gc_cr_lock();
2407-
vm_locked = true;
24082407
unlock_vm = true;
24092408
}
24102409

0 commit comments

Comments
 (0)