Patrick Marlier <patrick.marl...@gmail.com> writes:

> Hi,
>
> I found that all thread local variables are instrumented with
> _ITM_W/R* calls whereas they should not be shared with other
> threads. This patch takes care of thread locals into requires_barrier
> and also adds the local save/restore for them. This patch also
> includes a testcase.

What happens when the address of the thread local escapes?
It could well be written by another thread then.

I guess you have to check for escapes here.

-Andi

-- 
a...@linux.intel.com -- Speaking for myself only

Reply via email to