Skip to content

Commit 0eea9cb

Browse files
vchuravyd-netto
authored andcommitted
Change relaxed to acquire
1 parent 7c5eba4 commit 0eea9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/work-stealing-queue.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static inline void ws_queue_steal_from(ws_queue_t *q, void *dest, int32_t eltsz)
100100
int64_t b = jl_atomic_load_acquire(&q->bottom);
101101
int64_t size = b - t;
102102
if (size > 0) {
103-
ws_array_t *ary = jl_atomic_load_relaxed(&q->array);
103+
ws_array_t *ary = jl_atomic_load_acquire(&q->array); // consume in Le
104104
memcpy(dest, ary->buffer + (t & ary->mask) * eltsz, eltsz);
105105
if (!jl_atomic_cmpswap(&q->top, &t, t + 1))
106106
memset(dest, 0, eltsz);

0 commit comments

Comments
 (0)