From cd0795beea1d4875c0ffa0f9e626560c11e68f1d Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Wed, 3 May 2023 15:44:36 +0100 Subject: [PATCH] Slightly more sanitary thread dispatch Tell thread sanitizer that the thread wrapper is released before passing it to a new thread. --- lib/isc/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/thread.c b/lib/isc/thread.c index aca7c38332..b0e0875aca 100644 --- a/lib/isc/thread.c +++ b/lib/isc/thread.c @@ -61,7 +61,7 @@ thread_wrap(isc_threadfunc_t func, void *arg) { .func = func, .arg = arg, }; - + __tsan_release(wrap); return (wrap); }