diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | eval.c | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -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. @@ -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 |
