Skip to content

Commit

Permalink
Merge commit '2e4a0a4d90205224703a958fc9e4de61f6436aae' into Ractor-L…
Browse files Browse the repository at this point in the history
…ocal-GC-version-2
  • Loading branch information
rm155 committed Nov 28, 2023
2 parents fad6e77 + 2e4a0a4 commit c0481a1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions enumerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ static const rb_data_type_t yielder_data_type = {
NULL,
yielder_compact,
},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_EMBEDDABLE
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_EMBEDDABLE
};

static struct yielder *
Expand Down Expand Up @@ -1341,7 +1341,7 @@ yielder_init(VALUE obj, VALUE proc)
rb_raise(rb_eArgError, "unallocated yielder");
}

ptr->proc = proc;
RB_OBJ_WRITE(obj, &ptr->proc, proc);

return obj;
}
Expand Down Expand Up @@ -1434,7 +1434,7 @@ static const rb_data_type_t generator_data_type = {
NULL,
generator_compact,
},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_EMBEDDABLE
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_EMBEDDABLE
};

static struct generator *
Expand Down Expand Up @@ -1474,7 +1474,7 @@ generator_init(VALUE obj, VALUE proc)
rb_raise(rb_eArgError, "unallocated generator");
}

ptr->proc = proc;
RB_OBJ_WRITE(obj, &ptr->proc, proc);

return obj;
}
Expand Down Expand Up @@ -1522,7 +1522,7 @@ generator_init_copy(VALUE obj, VALUE orig)
rb_raise(rb_eArgError, "unallocated generator");
}

ptr1->proc = ptr0->proc;
RB_OBJ_WRITE(obj, &ptr1->proc, ptr0->proc);

return obj;
}
Expand Down Expand Up @@ -1689,7 +1689,7 @@ lazy_generator_init(VALUE enumerator, VALUE procs)
lazy_init_block, rb_ary_new3(2, obj, procs));

gen_ptr = generator_ptr(generator);
gen_ptr->obj = obj;
RB_OBJ_WRITE(generator, &gen_ptr->obj, obj);

return generator;
}
Expand Down Expand Up @@ -2945,7 +2945,7 @@ static const rb_data_type_t producer_data_type = {
producer_memsize,
producer_compact,
},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_EMBEDDABLE
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_EMBEDDABLE
};

static struct producer *
Expand Down Expand Up @@ -2985,8 +2985,8 @@ producer_init(VALUE obj, VALUE init, VALUE proc)
rb_raise(rb_eArgError, "unallocated producer");
}

ptr->init = init;
ptr->proc = proc;
RB_OBJ_WRITE(obj, &ptr->init, init);
RB_OBJ_WRITE(obj, &ptr->proc, proc);

return obj;
}
Expand Down

0 comments on commit c0481a1

Please sign in to comment.