diff options
author | Aaron Patterson <[email protected]> | 2025-05-20 16:37:51 -0700 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2025-05-20 18:04:37 -0700 |
commit | 1c66124273ec37e1c359fc327ab25be99a6f7fa9 () | |
tree | 32ef3bbbd88a98e3d9623334958e24b0275d0c8d /ext/socket/raddrinfo.c | |
parent | b08e20d34afb1cb99eeb97b4b7330290556511d3 (diff) |
Make Addrinfo objects Ractor shareable
Allow Addrinfo objects to be shared among Ractors. Addrinfo objects are already immutable, so I think it's safe for us to tag them as RUBY_TYPED_FROZEN_SHAREABLE shareable too.
Notes: Merged: https://.com/ruby/ruby/pull/13388
-rw-r--r-- | ext/socket/raddrinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1211,6 +1211,7 @@ addrinfo_memsize(const void *ptr) static const rb_data_type_t addrinfo_type = { "socket/addrinfo", {addrinfo_mark, addrinfo_free, addrinfo_memsize,}, }; static VALUE |