diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-06-10 00:32:15 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-06-10 00:32:24 -0700 |
| commit | c5e8a49bdeadd8e424274c17c0d2a9ffed64417b (patch) | |
| tree | f8f95bac341505213430cd2b61a846dc7cee089f /include/ruby/assert.h | |
| parent | 791d7d49476e6363c1bd24af637a9581acc627bb (diff) | |
Avoid enqueueing the same ISeq twice
by a race condition by multiple Ractors.
Atmically incrementing body->total_calls may have its own cost, so for
now we intentionally leave the unreliable total_calls. So we allow an
ISeq to be never pushed when you use multiple Ractors. However, if you
enqueue a single ccan node twice, get_from_list loops infinitely. Thus
this patch takes care of such a situation.
Diffstat (limited to 'include/ruby/assert.h')
0 files changed, 0 insertions, 0 deletions
