Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* gc.c (run_finalizer): clear rb_thread_t::errinfo when ignore

  an exception under rb_protect(). [ruby-dev:45113]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit fcb05d868316ebee7750537dea40e9de584aabf3 1 parent d4b2957
@nagachika nagachika authored
Showing with 8 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +3 −0  gc.c
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 10 00:32:17 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
+
+ * gc.c (run_finalizer): clear rb_thread_t::errinfo when ignore
+ an exception under rb_protect(). [ruby-dev:45113]
+
Mon Jan 9 23:37:43 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/readline/readline.c (readline_attempted_completion_function):
View
3  gc.c
@@ -3092,7 +3092,10 @@ run_finalizer(rb_objspace_t *objspace, VALUE obj, VALUE table)
VALUE final = RARRAY_PTR(table)[i];
args[0] = RARRAY_PTR(final)[1];
args[2] = FIX2INT(RARRAY_PTR(final)[0]);
+ status = 0;
rb_protect(run_single_final, (VALUE)args, &status);
+ if (status)
+ rb_set_errinfo(Qnil);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.