Project

General

Profile

Bug #17984 ยป 0001-Store-the-dup-d-CDHASH-in-the-object-list-during-IBF.patch

tenderlovemaking (Aaron Patterson), 07/06/2021 10:28 PM

View differences:

compile.c
10797 10797
                    rb_hash_rehash(v); // hash function changed
10798 10798
                    freeze_hide_obj(v);
10799 10799

  
10800
                    // Overwrite the existing hash in the object list.  This
10801
                    // is to keep the object alive during load time.
10802
                    // [Bug #17984] [ruby-core:104259]
10803
                    pinned_list_store(load->current_buffer->obj_list, (long)op, v);
10804

  
10800 10805
                    code[code_index] = v;
10801 10806
                    RB_OBJ_WRITTEN(iseqv, Qundef, v);
10802 10807
                    FL_SET(iseqv, ISEQ_MARKABLE_ISEQ);