[前][次][番号順一覧][スレッド一覧]

ruby-changes:23035

From: nobu <ko1@a...>
Date: Mon, 19 Mar 2012 00:21:09 +0900 (JST)
Subject: [ruby-changes:23035] nobu:r35085 (trunk): volatile errinfo

nobu	2012-03-19 00:21:00 +0900 (Mon, 19 Mar 2012)

  New Revision: 35085

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35085

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

  Modified files:
    trunk/eval_jump.c

Index: eval_jump.c
===================================================================
--- eval_jump.c	(revision 35084)
+++ eval_jump.c	(revision 35085)
@@ -100,7 +100,7 @@
     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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]