diff options
| author | Luke Gruber <luke.gruber@shopify.com> | 2025-08-06 14:30:03 -0400 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2025-08-12 15:19:02 -0700 |
| commit | 1afc07e815051e2f73493f055f2130cb642ba12a (patch) | |
| tree | a2e50a5bcd58e73cd7a609abde3af13e2734fe83 /include/ruby/internal | |
| parent | 31e8a9fced895845a7aac123080d325768177b19 (diff) | |
Allow encodings to be autoloaded through transcoding functions
Make sure VM lock is not held when calling `load_transcoder_entry`, as
that causes deadlock inside ractors. `String#encode` now works inside
ractors, among others.
Atomic load the rb_encoding_list
Without this, wbcheck would sometimes hit a missing write barrier.
Co-authored-by: John Hawthorn <john.hawthorn@shopify.com>
Hold VM lock when iterating over global_enc_table.names
This st_table can be inserted into at runtime when autoloading
encodings.
minor optimization when calling Encoding.list
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions
