summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/replace_spec.rb
diff options
context:
space:
mode:
authorÉtienne Barrié <etienne.barrie@gmail.com>2025-03-24 12:17:58 +0100
committerJean Boussier <jean.boussier@gmail.com>2025-03-27 17:54:56 +0100
commit6ecfe643b5d8d64682c6f6bce5b27db5c007331d (patch)
tree3e509be8f58cf5a3fcbc4485db33e9e2b032b5a8 /spec/ruby/core/array/replace_spec.rb
parent49d49d5985fa22d6f283e1f0e5299d18dd94e77d (diff)
Freeze $/ and make it ractor safe
[Feature #21109] By always freezing when setting the global rb_rs variable, we can ensure it is not modified and can be accessed from a ractor. We're also making sure it's an instance of String and does not have any instance variables. Of course, if $/ is changed at runtime, it may cause surprising behavior but doing so is deprecated already anyway. Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12975
Diffstat (limited to 'spec/ruby/core/array/replace_spec.rb')
0 files changed, 0 insertions, 0 deletions