ruby-cvs:23628
From: akr ruby-lang.org
Date: Mon, 12 May 2008 15:28:44 +0900 (JST)
Subject: [ruby-cvs:23628] Ruby:r16388 (trunk): * gc.c (ruby_vm_xmalloc): increase malloc_increase only if malloc
akr 2008-05-12 15:28:43 +0900 (Mon, 12 May 2008)
New Revision: 16388
Modified files:
trunk/ChangeLog
trunk/gc.c
Log:
* gc.c (ruby_vm_xmalloc): increase malloc_increase only if malloc
succeeds. failed malloc size can be huge. it may increase
malloc_limit too big which cause less GC and memory full.
(ruby_vm_xrealloc): ditto.
(rb_objspace): make params.limit and params.increase size_t.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16388&r2=16387&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/gc.c?r1=16388&r2=16387&diff_format=u