Skip to content

Commit

Permalink
Use locking when marking ivtbl to accommodate local GC
Browse files Browse the repository at this point in the history
  • Loading branch information
rm155 committed Oct 5, 2024
1 parent 8883712 commit 110c119
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions variable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,9 +1158,8 @@ gen_ivtbl_resize(struct gen_ivtbl *old, uint32_t n)
void
rb_mark_generic_ivar(VALUE obj)
{
st_data_t data;
if (st_lookup(generic_ivtbl_no_ractor_check(obj), (st_data_t)obj, &data)) {
struct gen_ivtbl *ivtbl = (struct gen_ivtbl *)data;
struct gen_ivtbl *ivtbl;
if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) {
if (rb_shape_obj_too_complex(obj)) {
rb_mark_tbl_no_pin(ivtbl->as.complex.table);
}
Expand Down

0 comments on commit 110c119

Please sign in to comment.