зеркало из https://github.com/github/ruby.git
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:
Родитель
19c617b51d
Коммит
fc043a2e61
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче