diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2023-11-28 20:41:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-29 01:41:40 +0000 |
| commit | fcabe2df39b892458cb1f67437852c4acbb245a6 (patch) | |
| tree | 8862de7e37abeabcd5fa5598afac7b211596caeb /gc.c | |
| parent | bed014e374c6a4a7cec15a18e9dd702b674706d9 (diff) | |
Remove written-but-never-read `me->def.body.refined.owner`
This also removes aliasing rule violations; the anonymous structs were
distinct types from `rb_method_refined_t`.
Diffstat (limited to 'gc.c')
| -rw-r--r-- | gc.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -6684,7 +6684,6 @@ mark_method_entry(rb_objspace_t *objspace, const rb_method_entry_t *me) return; case VM_METHOD_TYPE_REFINED: gc_mark(objspace, (VALUE)def->body.refined.orig_me); - gc_mark(objspace, (VALUE)def->body.refined.owner); break; case VM_METHOD_TYPE_CFUNC: case VM_METHOD_TYPE_ZSUPER: @@ -10308,7 +10307,6 @@ gc_ref_update_method_entry(rb_objspace_t *objspace, rb_method_entry_t *me) return; case VM_METHOD_TYPE_REFINED: TYPED_UPDATE_IF_MOVED(objspace, struct rb_method_entry_struct *, def->body.refined.orig_me); - UPDATE_IF_MOVED(objspace, def->body.refined.owner); break; case VM_METHOD_TYPE_CFUNC: case VM_METHOD_TYPE_ZSUPER: |
