Piotr Sawicki wrote:
> I have simple, but ugly solution for this problem.
>
> class String
>     alias plus +
>     def +(a)
>         res = self.plus(a)
>         GC.start
>         return res
>     end
> end
>   


Obviously this is a just an example to illustrate the issue, but

def leaker
    a = ""
    10000.times do
         a << "buble"
    end
    a = ""
end


loop do
    leaker
end


does not exhibit the same memory usage as the OP.

-Justin