summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 38e46c3daa..a2c882cfff 100644
--- a/thread.c
+++ b/thread.c
@@ -3345,7 +3345,7 @@ recursive_pop(VALUE hash, VALUE obj)
VALUE
rb_exec_recursive(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE arg)
{
- VALUE hash = rb_thread_local_aref(rb_thread_current(), recursive_key);
+ volatile VALUE hash = rb_thread_local_aref(rb_thread_current(), recursive_key);
VALUE objid = rb_obj_id(obj);
if (recursive_check(hash, objid)) {