[Feature #2328] malloc_limit の肥大化を防ぎたい

e$B%A%1%C%He(B #2328 e$B$,99?7$5$l$^$7$?!#e(B (by _ wanabe)

e$B%U%!%$%ke(B test.rb e$BDI2Ce(B
e$B%U%!%$%ke(B log.txt e$BDI2Ce(B

e$B;d$O;W$$$D$-$^$;$s!#%Y%s%A%^!<%/e(B(e$B$3$s$J%1!<%9$G$3$s$J$K2~A1e(B
e$B$H$+!$3$s$J%1!<%9$G$O0-$/$J$i$J$$$H$+e(B)e$B$,$$k$H:NMQ$7$d$9$$e(B
e$B$H;W$$$^$9!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#2~A1$5$l$kNc$H$=$N<B9T7k2L$rE:IU$7$^$7$?!#e(B
e$B0-$/$J$i$J$$%1!<%9$O$=$l$i$7$$$b$N$,;W$$$D$-$^$;$s$G$7$?!#$9$_$^$;$s!#e(B

malloc/realloc e$B$N8e$K!e(B1MB e$B$NJ8;zNs$re(B 2000
e$B8D@8@.$7$F$$$^$9!#e(B
e$B%j%M!<%`$NET9g>ee(B miniruby e$B$G$9$,!62$i$/e(B ruby
e$B$G$b$$^$jJQ$o$i$J$$$H;W$$$^$9!#e(B
-v e$B$O!$$$:$l$be(B ruby 1.9.2dev (2009-11-02 trunk 25630)
[i386-mingw32] e$B$G$9!#e(B

e$B$^$H$a$k$H!0J2<$N$h$&$J7k2L$K$J$j$^$7$?!#e(B
e$B%a%b%j$N=aBt$J4D6-$G$O!?tCM$r$$$8$i$J$$$H:9$,=P$J$$$+$b$7$l$^$;$s!#e(B

e$BDL>o$Ne(B miniruby, e$BBgNLe(B realloc e$B8ee(B: 277 e$BIC!Je(BGC:
12 e$B2s!Ke(B
e$B%Q%C%Ae(B 1 e$BE,MQ;~e(B, e$BBgNLe(B realloc e$B8ee(B: 10
e$BIC!Je(BGC: 286 e$B2s!Ke(B
e$B%Q%C%Ae(B 2 e$BE,MQ;~e(B, e$BBgNLe(B realloc e$B8ee(B: 285
e$BIC!Je(BGC: 13 e$B2s!Ke(B
e$BN>%Q%C%Ae(B e$BE,MQ;~e(B, e$BBgNLe(B realloc e$B8ee(B: 10
e$BIC!Je(BGC: 286 e$B2s!Ke(B

e$BDL>o$Ne(B miniruby, e$BBgNLe(B malloc e$B8ee(B: 141 e$BIC!Je(BGC:
30 e$B2s!Ke(B
e$B%Q%C%Ae(B 1 e$BE,MQ;~e(B, e$BBgNLe(B malloc e$B8ee(B: 155
e$BIC!Je(BGC: 30 e$B2s!Ke(B
e$B%Q%C%Ae(B 2 e$BE,MQ;~e(B, e$BBgNLe(B malloc e$B8ee(B: 27
e$BIC!Je(BGC: 66 e$B2s!Ke(B
e$BN>%Q%C%Ae(B e$BE,MQ;~e(B, e$BBgNLe(B malloc e$B8ee(B: 29
e$BIC!Je(BGC: 66 e$B2s!Ke(B

e$B$J$*<j85$G$O!"N>%Q%C%AE,MQ8ee(B make test-all e$B$,e(B 3722 e$BICe(B
e$B$+$ie(B2435 e$BIC$K$J$j$^$7$?!#e(B
e$B!J%V%m%C%/$7$F$7$^$&$N$Ge(B test_io.rb e$B$Ne(B test_dup_many
e$B$O%9%-%C%W$7$F$$$^$9$,!Ke(B

http://redmine.ruby-lang.org/issues/show/2328

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message Re: [ruby-dev:39636] [Feature #2328] malloc_limit
e$B$NHnBg2=$rKI$.$?$$e(B
on Wed, 4 Nov 2009 21:01:41 +0900, _ wanabe [email protected]
writes:

|> e$B;d$O;W$$$D$-$^$;$s!#%Y%s%A%^!<%/e(B(e$B$3$s$J%1!<%9$G$3$s$J$K2~A1e(B
|> e$B$H$+!$3$s$J%1!<%9$G$O0-$/$J$i$J$$$H$+e(B)e$B$,$$k$H:NMQ$7$d$9$$e(B
|> e$B$H;W$$$^$9!#e(B
|
|e$B$"$j$,$H$&$4$6$$$^$9!#2~A1$5$l$kNc$H$=$N<B9T7k2L$rE:IU$7$^$7$?!#e(B
|e$B0-$/$J$i$J$$%1!<%9$O$=$l$i$7$$$b$N$,;W$$$D$-$^$;$s$G$7$?!#$9$_$^$;$s!#e(B

<e$BN,e(B>

e$B$$j$,$H$&$4$6$$$^$9!#$H$F$b@bF@NO$N$$k%Y%s%A%^!<%/$@$H;W$$e(B
e$B$^$7$?!#?M9)E*$J%F%9%H$@$1$G$J$/!"e(Btest-alle$B$b@-G=$,2~A1$7$F$$e(B
e$B$kE@$,9%0u>]$G$9!#e(B

e$B%3%_%C%H$7$F$$$?$@$1$^$;$s$+!)e(B