mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
merges r30657 from trunk into ruby_1_9_2.
-- * vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate variable from GC. [Bug #4322] [ruby-dev:43108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25394cb929
commit
a474c66f46
3 changed files with 10 additions and 4 deletions
|
@ -1437,6 +1437,7 @@ rb_throw_obj(VALUE tag, VALUE value)
|
|||
}
|
||||
if (!tt) {
|
||||
VALUE desc = rb_inspect(tag);
|
||||
RB_GC_GUARD(desc);
|
||||
rb_raise(rb_eArgError, "uncaught throw %s", RSTRING_PTR(desc));
|
||||
}
|
||||
rb_trap_restore_mask();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue