ruby-changes:33099
From: nobu <ko1@a...>
Date: Wed, 26 Feb 2014 12:28:14 +0900 (JST)
Subject: [ruby-changes:33099] nobu:r45178 (trunk): eval.c: remove unneeded GC guard
nobu 2014-02-26 12:28:10 +0900 (Wed, 26 Feb 2014) New Revision: 45178 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45178 Log: eval.c: remove unneeded GC guard * eval.c (setup_exception): remove RB_GC_GUARD which is no longer needed since r41598. Modified files: trunk/eval.c Index: eval.c =================================================================== --- eval.c (revision 45177) +++ eval.c (revision 45178) @@ -513,7 +513,7 @@ setup_exception(rb_thread_t *th, int tag https://github.com/ruby/ruby/blob/trunk/eval.c#L513 PUSH_TAG(); if ((status = EXEC_TAG()) == 0) { - RB_GC_GUARD(e) = rb_obj_as_string(e); + e = rb_obj_as_string(e); if (file && line) { warn_printf("Exception `%s' at %s:%d - %"PRIsVALUE"\n", rb_obj_classname(th->errinfo), file, line, e); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/