Hi Ondřej, > I have two questions: > > 1. I've tried to help TSAN by replacing the custom atomics with __atomic gcc > primitives - that seems to work pretty well. Note that using C11 stdatomics > is frankly not possible here because it would require wrapping everything into > _Atomic(). I'm using the attached patch which does much the same. Ciao, Duncan.