We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bef757 commit a60cd87Copy full SHA for a60cd87
1 file changed
variable.c
@@ -1317,7 +1317,9 @@ rb_free_generic_ivar(VALUE obj)
1317
ec->gen_fields_cache.fields_obj = Qundef;
1318
}
1319
RB_VM_LOCKING() {
1320
- st_delete(generic_fields_tbl_no_ractor_check(), &key, &value);
+ if (!st_delete(generic_fields_tbl_no_ractor_check(), &key, &value)) {
1321
+ rb_bug("Object is missing entry in generic_fields_tbl");
1322
+ }
1323
1324
1325
0 commit comments