Skip to content

Commit

Permalink
volatile errinfo
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Mar 18, 2012
1 parent e30dbb3 commit bd37744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval_jump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd37744

Please sign in to comment.