[ruby-core:89509] [Ruby trunk Bug#15241] net/pop fix to use mutable strings was too eager

From: me@...
Date: 2018-10-22 12:40:10 UTC
List: ruby-core #89509
Issue #15241 has been reported by eventualbuddha (Brian Donovan).

----------------------------------------
Bug #15241: net/pop fix to use mutable strings was too eager
https://bugs.ruby-lang.org/issues/15241

* Author: eventualbuddha (Brian Donovan)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.5w
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
See [[https://github.com/ruby/ruby/commit/3993fbb5f6bfdae0bce040988d7e2dd632247cdc#commitcomment-30987842|this thread on Github]]. I believe the changes made in Backport #14416 for 2.5.2 (on both trunk and 2.5.x) over-eagerly applied mutability to literal strings. In particular, the strings returned by `inspect` have no real need to be mutable as far as I can tell.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next