Skip to content

Commit

Permalink
Use table lock instead of VM lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rm155 committed Nov 7, 2023
1 parent 07bda71 commit a8dbb54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,11 +1592,11 @@ generic_ivar_set_shape_ivptr(VALUE obj, void *data)

struct gen_ivar_lookup_ensure_size *ivar_lookup = data;

RB_VM_LOCK_ENTER();
GENERIC_IVTBL_ENTER();
{
st_update(generic_ivtbl(obj, ivar_lookup->id, false), (st_data_t)obj, generic_ivar_lookup_ensure_size, (st_data_t)ivar_lookup);
}
RB_VM_LOCK_LEAVE();
GENERIC_IVTBL_LEAVE();

FL_SET_RAW(obj, FL_EXIVAR);

Expand Down

0 comments on commit a8dbb54

Please sign in to comment.