From: nagachika00@... Date: 2015-11-27T20:49:39+00:00 Subject: [ruby-core:71710] [Ruby trunk - Bug #10686] Memory leaking from torture test of symbol GC Issue #10686 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE Backported r49813 and r52140 into `ruby_2_2` branch at r52770. ---------------------------------------- Bug #10686: Memory leaking from torture test of symbol GC https://bugs.ruby-lang.org/issues/10686#change-55116 * Author: Charles Nutter * Status: Closed * Priority: Normal * Assignee: * ruby -v: 2.2p0 * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE ---------------------------------------- The following code appears to grow without bounds when running on MRI 2.2p0 (and grows *very* fast...hold on to your RAM): ```ruby x = 0; loop { (x += 1).to_s.to_sym } ``` I asked ko1 about this on Twitter and he said it appears to be leaking strings somewhere. ---Files-------------------------------- test_symbol.patch (610 Bytes) -- https://bugs.ruby-lang.org/