Re: [PATCH 16/19] util: fixed tsan warnings in thread_pool.c

2020-05-26 Thread Paolo Bonzini
On 22/05/20 18:07, Robert Foley wrote: > #include "trace.h" > #include "block/thread-pool.h" > #include "qemu/main-loop.h" > +#include "qemu/tsan.h" > > static void do_spawn_thread(ThreadPool *pool); > > @@ -97,7 +98,9 @@ static void *worker_thread(void *opaque) > } > >

[PATCH 16/19] util: fixed tsan warnings in thread_pool.c

2020-05-22 Thread Robert Foley
For example: WARNING: ThreadSanitizer: data race (pid=14665) Write of size 4 at 0x7b1c7890 by thread T99: #0 worker_thread util/thread-pool.c:112:20 (qemu-system-aarch64+0xd52108) #1 qemu_thread_start util/qemu-thread-posix.c:519:9 (qemu-system-aarch64+0xd5be30) Previous read of