1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

volatile errinfo

* eval_jump.c (rb_exec_end_proc): need volatile to prevent from
  setjmp/longjmp.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-03-18 15:21:00 +00:00
parent e30dbb3671
commit bd377449f0

View file

@ -100,7 +100,7 @@ rb_exec_end_proc(void)
int status;
volatile int safe = rb_safe_level();
rb_thread_t *th = GET_THREAD();
VALUE errinfo = th->errinfo;
volatile VALUE errinfo = th->errinfo;
while (ephemeral_end_procs) {
link = ephemeral_end_procs;