From: Clifford Heath Date: 2011-06-02T10:00:24+09:00 Subject: [ruby-core:36682] Re: [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings On 02/06/2011, at 10:28 AM, Kurt Stephens wrote: > A String used as inline or static nmenomic in real code is pinned > down anyway and will not be GCed. Yes it will. What's pinned down is a call to a constructor (with a pinned value, but there is a fixed and finite number of such values), so that every time that code executes, a new String is created, and that will get GC'd. Symbols avoid the overhead of constructing and GC'ing new Strings, but the problem Cezary is talking about is where code that creates Symbols dynamically from Strings, that can create a potentially unbounded number of Symbols, none of which can be GC'd. Clifford Heath.