From: Jérémie Galarneau Date: Fri, 18 May 2018 19:08:14 +0000 (-0400) Subject: Fix: perform the initialization memory barrier out of loop body X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=8b0d46366f5c87043d22aa29b9f26e5249bf7c3a;hp=8b0d46366f5c87043d22aa29b9f26e5249bf7c3a;p=lttng-tools.git Fix: perform the initialization memory barrier out of loop body The memory barrier used by the client thread should be performed after the lttng_sessiond_ready counter has been seen to have reached zero. This ensures that loads are not speculatively performed before this point as the thread will interact with data structures initialized by the support threads for which it was waiting for the initialization to complete. See the comment as to why this read barrier is promoted to a full barrier. Signed-off-by: Jérémie Galarneau ---