* eval.c (bmcall): fix a GC problem by tail call on

IA64 with gcc 4.0.3 20051216 (prerelease).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-12-16 18:34:57 +00:00
parent 44ebf5de34
commit 3ab3b5b3c8
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Dec 17 03:30:23 2005 Tanaka Akira <akr@m17n.org>
* eval.c (bmcall): fix a GC problem by tail call on
IA64 with gcc 4.0.3 20051216 (prerelease).
Fri Dec 16 17:53:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* ext/syck/rubyext.c (rb_syck_compile): fixed memory leak.

5
eval.c
View File

@ -9172,9 +9172,12 @@ static VALUE
bmcall(VALUE args, VALUE method)
{
volatile VALUE a;
VALUE ret;
a = svalue_to_avalue(args);
return rb_method_call(RARRAY(a)->len, RARRAY(a)->ptr, method);
ret = rb_method_call(RARRAY(a)->len, RARRAY(a)->ptr, method);
a = Qnil; /* prevent tail call */
return ret;
}
VALUE