From 13c2f278d8812fc960caf678f7041cbe7549ca3a Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 16 Dec 2005 18:34:57 +0000 Subject: * eval.c (bmcall): fix a GC problem by tail call on IA64 with gcc 4.0.3 20051216 (prerelease). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 58971b128..d049b7ff6 100644 --- a/eval.c +++ b/eval.c @@ -9273,9 +9273,12 @@ bmcall(args, method) VALUE args, method; { volatile VALUE a; + VALUE ret; a = svalue_to_avalue(args); - return method_call(RARRAY(a)->len, RARRAY(a)->ptr, method); + ret = method_call(RARRAY(a)->len, RARRAY(a)->ptr, method); + a = Qnil; /* prevent tail call */ + return ret; } VALUE -- cgit