summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-09-23 14:58:55 -0400
committerPeter Zhu <[email protected]>2024-09-23 15:51:16 -0400
commitfc043a2e61fac23159a92f581bf9f0dbf8e843f7 ()
treee13bcda110a1224914d21f8037e32f13d0bc00c8
parent19c617b51de7f8fc73baa1c404bed3b4e6dbbf69 (diff)
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.
Notes: Merged: https://.com/ruby/ruby/pull/11671
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 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->meth, ptr0->meth);
RB_OBJ_WRITE(obj, &ptr1->args, ptr0->args);
ptr1->fib = 0;
ptr1->lookahead = Qundef;