On Tue, Jun 2, 2020 at 9:22 AM Song Liu wrote:
>
> On Mon, Jun 1, 2020 at 10:04 PM Andrii Nakryiko wrote:
> >
> > Make sample_cnt volatile to fix possible selftests failure due to compiler
> > optimization preventing latest sample_cnt value to be visible to main
> > thread.
> > sample_cnt is inc
On Mon, Jun 1, 2020 at 10:04 PM Andrii Nakryiko wrote:
>
> Make sample_cnt volatile to fix possible selftests failure due to compiler
> optimization preventing latest sample_cnt value to be visible to main thread.
> sample_cnt is incremented in background thread, which is then joined into main
> t
Make sample_cnt volatile to fix possible selftests failure due to compiler
optimization preventing latest sample_cnt value to be visible to main thread.
sample_cnt is incremented in background thread, which is then joined into main
thread. So in terms of visibility sample_cnt update is ok. But beca