diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2023-06-01 14:55:36 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2023-06-01 14:55:36 -0700 |
commit | 10621f7cb9a0c70e568f89cce47a02e878af6778 (patch) | |
tree | cb8ce96582f7780a8093be1239689f768c74e6e5 /class.c | |
parent | 2d2893f206b1ff012ac68bddbeb860ca737b765f (diff) |
Revert "Fix cvar caching when class is cloned"
This reverts commit 77d1b082470790c17c24a2f406b4fec5d522636b.
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -446,12 +446,9 @@ cvc_table_copy(ID id, VALUE val, void *data) ent = ALLOC(struct rb_cvar_class_tbl_entry); ent->class_value = ctx->clone; - ent->cref = orig_entry->cref; ent->global_cvar_state = orig_entry->global_cvar_state; rb_id_table_insert(ctx->new_table, id, (VALUE)ent); - RB_OBJ_WRITTEN(ctx->clone, Qundef, ent->cref); - return ID_TABLE_CONTINUE; } |