mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d4b2957781
commit
fcb05d8683
2 changed files with 8 additions and 0 deletions
|
@ -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):
|
||||
|
|
3
gc.c
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue