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)
> }
>
>
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