From a8dbb5446b2041f0405ea169fcf023a2292914c3 Mon Sep 17 00:00:00 2001 From: rm155 Date: Tue, 7 Nov 2023 01:13:27 -0500 Subject: [PATCH] Use table lock instead of VM lock --- variable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variable.c b/variable.c index 23c85cb3c67d95..4572be732911c3 100644 --- a/variable.c +++ b/variable.c @@ -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);