mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use RB_VM_LOCKING
This commit is contained in:
parent
fc518fe1ff
commit
aad9fa2853
Notes:
git
2025-05-26 02:44:06 +00:00
18 changed files with 206 additions and 328 deletions
4
vm.c
4
vm.c
|
@ -4491,8 +4491,7 @@ rb_vm_register_global_object(VALUE obj)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
RB_VM_LOCK_ENTER();
|
||||
{
|
||||
RB_VM_LOCKING() {
|
||||
VALUE list = GET_VM()->mark_object_ary;
|
||||
VALUE head = pin_array_list_append(list, obj);
|
||||
if (head != list) {
|
||||
|
@ -4500,7 +4499,6 @@ rb_vm_register_global_object(VALUE obj)
|
|||
}
|
||||
RB_GC_GUARD(obj);
|
||||
}
|
||||
RB_VM_LOCK_LEAVE();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue