Commit e3dd766
[ruby/resolv] refactoring class-hash to be ractor-safe
mutable constants can't be shared across ractors; this changes that design to define the required variables as constants on the Resource class, which makes them reachable using ractors; the ClassHash is kept in order not to break integrations relying on its existence, but under the hood it's doing the same thing
ruby/resolv@639c01dc7f1 parent 54a85ca commit e3dd766
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2125 | 2125 | | |
2126 | 2126 | | |
2127 | 2127 | | |
2128 | | - | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
2129 | 2136 | | |
2130 | 2137 | | |
2131 | 2138 | | |
| |||
2163 | 2170 | | |
2164 | 2171 | | |
2165 | 2172 | | |
2166 | | - | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
2167 | 2176 | | |
2168 | 2177 | | |
2169 | 2178 | | |
| |||
0 commit comments