Skip to content
  • Peter Trommler's avatar
    RTS: Add missing memory barrier · 2df05448
    Peter Trommler authored and Ben Gamari's avatar Ben Gamari committed
    In the work stealing queue a load-load-barrier is required to ensure
    that a read of queue data cannot be reordered before a read of the
    bottom pointer into the queue.
    
    The added load-load-barrier ensures that the ordering of writes enforced
    at the end of `pushWSDeque` is also respected in the order of reads in
    `stealWSDeque_`. In other words, when reading `q->bottom` we want to make
    sure that we see the updates to `q->elements`.
    
    Fixes #13633
    
    (cherry picked from commit 5c084e04)
    2df05448