mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove write barrier for non-Ruby object
enumerator's meth attribute is an ID, which is not a Ruby object, so we should not apply the write barrier on it.
This commit is contained in:
parent
19c617b51d
commit
fc043a2e61
Notes:
git
2024-09-23 19:51:37 +00:00
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ enumerator_init_copy(VALUE obj, VALUE orig)
|
||||||
}
|
}
|
||||||
|
|
||||||
RB_OBJ_WRITE(obj, &ptr1->obj, ptr0->obj);
|
RB_OBJ_WRITE(obj, &ptr1->obj, ptr0->obj);
|
||||||
RB_OBJ_WRITE(obj, &ptr1->meth, ptr0->meth);
|
ptr1->meth = ptr0->meth;
|
||||||
RB_OBJ_WRITE(obj, &ptr1->args, ptr0->args);
|
RB_OBJ_WRITE(obj, &ptr1->args, ptr0->args);
|
||||||
ptr1->fib = 0;
|
ptr1->fib = 0;
|
||||||
ptr1->lookahead = Qundef;
|
ptr1->lookahead = Qundef;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue