summaryrefslogtreecommitdiff
path: root/vm_sync.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2021-06-10 00:32:15 -0700
committerTakashi Kokubun <[email protected]>2021-06-10 00:32:24 -0700
commitc5e8a49bdeadd8e424274c17c0d2a9ffed64417b (patch)
treef8f95bac341505213430cd2b61a846dc7cee089f /vm_sync.c
parent791d7d49476e6363c1bd24af637a9581acc627bb (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 'vm_sync.c')
0 files changed, 0 insertions, 0 deletions