mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_eval.c (rb_catch_obj): add volatile to tag to prevent crash
experimentally. http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130515T133500Z.log.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67f562a417
commit
940a99ac7c
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu May 16 17:15:32 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* vm_eval.c (rb_catch_obj): add volatile to tag to prevent crash
|
||||
experimentally.
|
||||
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130515T133500Z.log.html.gz
|
||||
|
||||
Thu May 16 16:19:50 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub (verconf.in): no longer used.
|
||||
|
|
|
@ -1798,12 +1798,13 @@ rb_catch(const char *tag, VALUE (*func)(), VALUE data)
|
|||
}
|
||||
|
||||
VALUE
|
||||
rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
||||
rb_catch_obj(VALUE t, VALUE (*func)(), VALUE data)
|
||||
{
|
||||
int state;
|
||||
volatile VALUE val = Qnil; /* OK */
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
rb_control_frame_t *saved_cfp = th->cfp;
|
||||
volatile VALUE tag = t;
|
||||
|
||||
TH_PUSH_TAG(th);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue