summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-01-31 16:15:28 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-02-06 11:46:51 +0900
commit34f8e75f9305b0da4ef1b0d4fe9ea3c3f31dcc22 (patch)
treee4309113aa1e41e4677e881260a527e761dd4a6e /vm_core.h
parentce4ea956d24eab5089a143bba38126f2b11b55b6 (diff)
rb_vm_t::postponed_job_index shall be rb_atomic_t
Pointer to this field is passed to ATOMIC_CAS. We have to use rb_atomic_t for that purpose.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2885
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index a2f6af3c30..d0676ae030 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -642,7 +642,7 @@ typedef struct rb_vm_struct {
/* postponed_job (async-signal-safe, NOT thread-safe) */
struct rb_postponed_job_struct *postponed_job_buffer;
- int postponed_job_index;
+ rb_atomic_t postponed_job_index;
int src_encoding_index;