Skip to content

Commit 226f058

Browse files
committed
add missing WBs
1 parent 65432be commit 226f058

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ractor.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,8 @@ ractor_local_value_set(rb_execution_context_t *ec, VALUE self, VALUE sym, VALUE
22202220
tbl = cr->idkey_local_storage = rb_id_table_create(2);
22212221
}
22222222
rb_id_table_insert(tbl, id, val);
2223+
RB_OBJ_WRITTEN(self, Qundef, val);
2224+
22232225
return val;
22242226
}
22252227

@@ -2267,7 +2269,7 @@ ractor_local_value_store_if_absent(rb_execution_context_t *ec, VALUE self, VALUE
22672269
}
22682270

22692271
if (!cr->local_storage_store_lock) {
2270-
cr->local_storage_store_lock = rb_mutex_new();
2272+
RB_OBJ_WRITE(self, &cr->local_storage_store_lock, rb_mutex_new());
22712273
}
22722274

22732275
return rb_mutex_synchronize(cr->local_storage_store_lock, ractor_local_value_store_i, (VALUE)&data);

0 commit comments

Comments
 (0)