Project

General

Profile

Actions

Bug #10686

closed

Memory leaking from torture test of symbol GC

Added by headius (Charles Nutter) over 9 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:67268]

Description

The following code appears to grow without bounds when running on MRI 2.2p0 (and grows very fast...hold on to your RAM):

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) test_symbol.patch ReiOdaira (Rei Odaira), 09/27/2015 05:40 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0