Skip to content
  • Étienne Barrié's avatar
    6ecfe643
    Freeze $/ and make it ractor safe · 6ecfe643
    Étienne Barrié authored
    
    
    [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: default avatarJean Boussier <jean.boussier@gmail.com>
    6ecfe643
    Freeze $/ and make it ractor safe
    Étienne Barrié authored
    
    
    [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: default avatarJean Boussier <jean.boussier@gmail.com>
Loading