Line 0
Link Here
|
|
|
1 |
--- vm_eval.c.orig 2015-11-29 10:01:12.000000000 +0100 |
2 |
+++ vm_eval.c 2016-01-10 19:11:40.066355000 +0100 |
3 |
@@ -1111,7 +1111,7 @@ rb_iterate(VALUE (* it_proc) (VALUE), VA |
4 |
int state; |
5 |
volatile VALUE retval = Qnil; |
6 |
NODE *node = NEW_IFUNC(bl_proc, data2); |
7 |
- rb_thread_t *th = GET_THREAD(); |
8 |
+ rb_thread_t *volatile th = GET_THREAD(); |
9 |
rb_control_frame_t *volatile cfp = th->cfp; |
10 |
|
11 |
node->nd_aid = rb_frame_this_func(); |
12 |
@@ -1239,7 +1239,7 @@ eval_string_with_cref(VALUE self, VALUE |
13 |
int state; |
14 |
VALUE result = Qundef; |
15 |
VALUE envval; |
16 |
- rb_thread_t *th = GET_THREAD(); |
17 |
+ rb_thread_t *volatile th = GET_THREAD(); |
18 |
rb_env_t *env = NULL; |
19 |
rb_block_t block, *base_block; |
20 |
volatile int parse_in_eval; |
21 |
@@ -1983,8 +1983,8 @@ rb_catch_protect(VALUE t, rb_block_call_ |
22 |
{ |
23 |
int state; |
24 |
volatile VALUE val = Qnil; /* OK */ |
25 |
- rb_thread_t *th = GET_THREAD(); |
26 |
- rb_control_frame_t *saved_cfp = th->cfp; |
27 |
+ rb_thread_t *volatile th = GET_THREAD(); |
28 |
+ rb_control_frame_t *volatile saved_cfp = th->cfp; |
29 |
volatile VALUE tag = t; |
30 |
|
31 |
TH_PUSH_TAG(th); |