irb:
name='1'*1024*1024*100;nil # 100m
name=rand
GC.start
=============
$ ps -ef|grep irb
ax       14081 13958  0 14:57 pts/2    00:00:00 irb

$ top 14081
=============
14081 ax        20   0  114m 112m 1960 S    0 11.3   0:00.66 irb
14081 ax        20   0 13824  11m 1960 S    0  1.2   0:00.54 irb
-------------
when "name=rand;GC.start", 112m->11m,why?

but "name=nil;GC.start",dont work
-- 
Posted via http://www.ruby-forum.com/.