We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44bec9 commit 7c51ce5Copy full SHA for 7c51ce5
encoding.c
@@ -152,6 +152,8 @@ enc_list_update(int index, rb_raw_encoding *encoding)
152
RBASIC_CLEAR_CLASS(new_list);
153
/* initialize encoding data */
154
rb_ary_store(new_list, index, enc_new(encoding));
155
+ rb_ary_freeze(new_list);
156
+ FL_SET_RAW(new_list, RUBY_FL_SHAREABLE);
157
RUBY_ATOMIC_VALUE_SET(rb_encoding_list, new_list);
158
}
159
0 commit comments